| | |
query results
Please support our MySQL advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
after i have run my query on a mysql db how can i set the result to equal a variable that i will use later on in the page.
i have set the query up like this
i dont think the last line is correct though. could anyone please help.
i have set the query up like this
MySQL Syntax (Toggle Plain Text)
<?php $rand = RAND (0, 100); $query = "SELECT broad1 FROM images_broad"; $result=mysql_query($query); while($row=mysql_fetch_array($result, MYSQL_ASSOC)){ $send_mail =$row['broad1']; } ?>
i dont think the last line is correct though. could anyone please help.
the end code look like this
thanks for the reply though
MySQL Syntax (Toggle Plain Text)
$query = "SELECT sent_messages FROM email_count"OR die(mysql_error()); $results = mysql_query($query); $arr = mysql_fetch_array($results); $sent_mail = $arr[0];
thanks for the reply though
![]() |
Similar Threads
- test mysql query for no results (PHP)
- Displaying query results dynamically in table (PHP)
- Database Query Help (MS SQL)
- FILTER QUERY results on a FORM? (Visual Basic 4 / 5 / 6)
- pagination of mysql query results (PHP)
- Trying to return query results (ColdFusion)
- Multiple results (MySQL)
- Dynamic Query (JSP)
Other Threads in the MySQL Forum
- Previous Thread: help needed!
- Next Thread: mysql question
| Thread Tools | Search this Thread |
agplv3 alfresco amazon api artisticlicense aws bizspark breathalyzer camparingtocolumns changingprices cmg communityjournalism contentmanagement contractors copyright count court crm database design developer development distinct drupal dui ec2 email enterprise eudora facebook form foss gartner government gpl greenit groklaw groupware hiring hyperic images innerjoins insert ip joebrockmeier join journalism keyword keywords kickfire laptop law legal license licensing linux maintenance managing mariadb matchingcolumns metron micromanage microsoft mindtouch montywidenius mozilla multiple music mysql mysqlcolumnupdating mysqldatetimeordermax() mysqlindex mysqlinternalqueries mysqlquery news open-xchange opendatabasealliance opengovernment opensource oracle penelope php priceupdating query referencedesign reorderingcolumns resultset saas select sharepoint simpledb sourcecode spotify sql sugarcrm syntax techsupport thunderbird transparency virtualization





