No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
4 Posted Topics
I have been working through an "Introduction to PHP" book that has been very useful but i'm stuck on the mail() function. The syntax looks pretty simple but when i actually try and run the code on my pc and try to send an email to my hotmail account i … | |
Re: I believe the correct function is [code] mysql_connect(); [/code] Not mssql_connect() as you have typed. Hope that helps. | |
Re: It can be done, just store the colour you want in a variable and swap it with a 2nd colour every time you go around the loop Something like this: [code] $bg = '#FF0000'; while ($row = mysql_fetch_array($result)) { if ($bg == '#FF0000') $bg = 'FFFF00'; else $bg = '#FF0000'; … | |
Re: You've defined the SQL statement as $sql, but now you need to actually do something with it. You need to call the function mysql_query with $sql as an argument. Eg [code] mysql_query($sql); [/code] Optionally you can use [code] $result = mysql_query($sql); [/code] In this case you don't really need to … |
The End.