No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Re:
[code]if(isset($_SESSION['admin']) == TRUE){echo "<font face='tahoma' color='#ff0000'>ADMIN : ".$_SESSION['admin']." welcome<br></font>";} $sql="SELECT * FROM messages WHERE messages.user_id=" .$_SESSION['userid']. ";"; $result=mysql_query($sql); [COLOR="Red"]$numrows=mysql_num_rows($result);[/COLOR][/code] for the previous code the browser show me this message: [COLOR="Green"]Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/www/e3lan3.freehostia.com/header.php on line 9[/COLOR] and line 9 is the … |
|
Re:
hi, I am doing a insert query over here and if the query is executed successfully, there will be a success message. However, whenever the query is being executed successfully, the success message is not being displayed. here is a snipet, can anybody guide me along? thanks alot. [code=php]//Execute SQL … |
|
Re:
This is a contact form php script which i got from some site. But when i uploaded to site, it shows " parse syntax error" . Its somewhere between line 30 to 35. Please review it and find ou the error. <?php $EmailFrom = "contact@test.com"; $EmailTo = "root@localhost"; $Subject = … |
|
Re:
echo removes white spaces from the text and stored text shows up w/o line breaks .. How can i correct this ? When i view my db tables and contents in it using phpmyadmin, the text stored in them look normal .. the way i typed it .. but when … |