Jump to content

[SOLVED] another sql error...


mike12255

Recommended Posts

So i cant figure out what or how, but aparently in my sql i have a constent escaping the string can anyone spot the error..?? Name is defined earlier it is passed as a paramiter through the function.

 

<?php
$x=2;
$z=1;
while($x != 0){
$temp2 = $name.$x;
$get = "SELECT content FROM " .NC_DB_PREFIX." content WHERE name ='".$temp2"'";
$res = mysql_query($get) or die (mysql_error());
$row = mysql_fetch_assoc($res);
?>

Link to comment
https://forums.phpfreaks.com/topic/178948-solved-another-sql-error/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.