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!
I have got this line below. The id gets passed on alright, but I d need that the email is also passed to the closeup.php page. I must be putting something wrong in here. I invented the variable 'z, so I am not sure if I actually need it, I think I dont'. This is a row displayed out of a SQL query
If you display something from the database use stripslashes(). As per the original question, are you retrieving the value of email from the database in your SQL query?
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
Thank you very much. Definitively this code does sound very fine, compared to what I had. Yes, the id continues being passed alright, but the email is still not being passed along and when I hover on the pic it displays equal to empty space =
emelianenko wrote:Thank you very much. Definitively this code does sound very fine, compared to what I had. Yes, the id continues being passed alright, but the email is still not being passed along and when I hover on the pic it displays equal to empty space =
but when put in that link it does not show on hovering and consequently it is not forwarded to the closeup.php page
, hmm dont know..
Sorry, in my posted code there is an errant double-quote after email:
[text]<td><a href="closeup.php?id='.urlencode($row['id']).'&email=" <--- delete that double-quote[/text]
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
Bingo! Correct. That did the trick. The code is perfect now.
In the meantime I had a look at your website, spidean.com, which is very professional. Templates is something everybody is extremely interested in. My question, are they somehow related to Templates.com ?
emelianenko wrote:Bingo! Correct. That did the trick. The code is perfect now.
In the meantime I had a look at your website, spidean.com, which is very professional. Templates is something everybody is extremely interested in. My question, are they somehow related to Templates.com ?
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.