It looks like you're using an Ad Blocker.

Please white-list or disable AboveTopSecret.com in your ad-blocking tool.

Thank you.

 

Some features of ATS will be disabled while you continue to use an ad-blocker.

 

PHP and MySql problem

page: 1
0

log in

join
share:

posted on Jul, 23 2007 @ 12:59 PM
link   
Ok, How do you enter sample code?

I'm trying to display data that I have in the database in a table. I'm using some code out of "PHP5 and MySQL Bible." I can use a select statement and get the info out, but I'm trying to get it displayed in a table, and keep ending up with this:

:: tries to enter code here ::

Here is my function, I can't see anything wrong with it! I am hosting on godaddy, with mysql 4.1. I have coded before, but admit I'm a bit rusty right now, someone asked me to build a site for them.

:: tries to enter code here ::



posted on Jul, 23 2007 @ 02:17 PM
link   
Nevermind, just needed to add a couple quotation marks. But how would you insert code snippits?



posted on Jul, 25 2007 @ 07:27 AM
link   
If you're trying to display code in this forum it can be difficult at times and you'll have to use some specific html characters to display data. Mainly the ">" and "<" characters. The [ code] [ /code] tags are supposed to help but other than highlighting your code they don't seem to do much.



?Php

// This is php code
if(this->code == true)[
//do something here;
]




 
0

log in

join