PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
<?php
while ( $row = mysql_fetch_array($result)) {
$lifetimeL = $row["Life Time License"];
$oneyearL = $row["1 Year License"];
$AB100 = $row["AB100"];
$AB150 = $row["AB150"];
$copywright = $row["copywright"];
}
?>
There is 1 row in my table which holds the price of these items.
For some reason they all work when I echo them except AB100 and AB150...... I know there is information in it and it is just boggling my mind why it wont work :S : S :S
What do you get if you use numbers instead of names for your array elements? $row[0], $row[1], etc. Maybe the names are slightly different than in your code. At least you'll see if you're pulling the data from the db or not.
... just curious, what would removing the quotations do? From my understanding it's better to have the quotations to not cause problems with constants.
Sorry bro! i didn't know its not allowed to make my font bold. tanx for reminding me. i haven't read yet the rules b4 posting a reply! i appreciate your reminder! tanx!
you've spelled copywrite incorrectly, is that causing any trouble?
i like to run queries in sql control centre, to see what data i get back when i have problems, that way i get to see the data that comes back, and can isolate sql problems from php problems,
i'm suspicious of the spaces in your field names eg 'Life Time License', that could be causing trouble,