Showing results 1 to 4 of 4
Search took 0.01 seconds; generated 1 minute(s) ago.
Posts Made By: Rankenian
Forum: PHP Oct 29th, 2007
Replies: 2
Views: 1,377
Posted By Rankenian
Re: Displaying Mysql rows, alternate colors?

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:


$bg = '#FF0000';
while ($row =...
Forum: PHP Oct 29th, 2007
Replies: 2
Views: 1,196
Posted By Rankenian
Re: Problem with inserting data into mysql with PHP

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


mysql_query($sql);


Optionally...
Forum: PHP Oct 25th, 2007
Replies: 3
Views: 757
Posted By Rankenian
Sending Mails with PHP

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...
Forum: PHP Oct 24th, 2007
Replies: 9
Views: 1,839
Posted By Rankenian
Re: PHP MSSQL APACHE problem in coonecting to database

I believe the correct function is


mysql_connect();


Not mssql_connect() as you have typed.

Hope that helps.
Showing results 1 to 4 of 4

 
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 12:37 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC