Re: [PHP]MySQL error, what's wrong here..

2001-07-24 Thread Wagner Tomy
try this: $query = "SELECT songname FROM mp3 WHERE sgid = \"$id\""; (or a little cleaner: $query = sprintf("SELECT songname FROM mp3 WHERE sgid = \"%d\"", $id); ) instead of: $query = "SELECT songname FROM mp3 WHERE sgid = " .$id; - Original Message - From: "James Holloway" <[EMAI

Re: [PHP] execution time

2001-07-27 Thread Wagner Tomy
execution a call such as set_time_limit(20) is made, the script will run for a total of 45 seconds before timing out. Wagner Tomy Editus S.A. - Original Message - From: "Pétur Björn Thorsteinsson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 27, 2001

Re: [PHP] 2D array

2001-07-27 Thread Wagner Tomy
$my2darray = Array(); while($row = mysql_fetch_row($result)) { array_push($my2darray, $row); } OR: for($i = 0; $i < mysql_num_rows($result); $i++) { $row = mysql_fetch_row($result); $my2darray[$i] = $row; } Wagner Tomy Editus S.A. - Original Message - From: "AJDIN

Re: [PHP] 2D array

2001-07-27 Thread Wagner Tomy
$my2darray = Array(); while(list($myname, $myphone, $myemail) = mysql_fetch_row($result)) { $my2darray[$myname] = array($myphone, $myemail); } Wagner Tomy Editus S.A. - Original Message - From: "AJDIN BRANDIC" <[EMAIL PROTECTED]> To: "Wagner Tomy" <[

Re: [PHP] Grabbing data up to \n

2001-07-27 Thread Wagner Tomy
$data = file("myfile"); $data = array of the lines from myfile ( they still contain the newline character ) Wagner Tomy Editus Luxembourg S.A. - Original Message - From: "Jeff Lewis" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 27, 2001

Re: [PHP] text imports

2001-08-07 Thread Wagner Tomy
http://www.php.net/manual/en/function.chop.php Returns the argument string without trailing whitespace, including newlines Wagner Tomy Web Developer Editus S.A. - Original Message - From: "Karl Phillipson" <[EMAIL PROTECTED]> To: "'Alexander Wagner'&qu

Re: [PHP] PHP inside code problem

2001-08-07 Thread Wagner Tomy
try this: if (!($html_support)) { $user_message = htmlspecialchars(stripslashes($user_message)); } Wagner Tomy Web Developer Editus S.A. - Original Message - From: "Nick K." <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 07,

Re: [PHP] text imports

2001-08-07 Thread Wagner Tomy
TABLE DBNAME.COUNTRY > LINES TERMINATED BY ',' (COUNTRY_NAME) > > == > Karl Phillipson > PHP SQL Programmer > > Saffron Hill Ventures > 67 Clerkenwell Road > London > EC1R 5BL > > Saffron Hill: 0207 693 8300 > Direct Line: 0207 693 8318 > > > -

Re: [PHP] text imports

2001-08-07 Thread Wagner Tomy
Developer Editus S.A. - Original Message - From: Karl Phillipson To: 'Wagner Tomy' ; [EMAIL PROTECTED] Sent: Tuesday, August 07, 2001 1:16 PM Subject: RE: [PHP] text imports So if this is the way to do it in SQL, is there a way to get rid of the pipe linefeeds using SQL too?

Re: [PHP] if(!$submit)

2001-08-07 Thread Wagner Tomy
> Fair enough, so then I add if (isset(!$submit)) and I then get an error; try if(!isset($submit)) instead Tomy Wagner Web Developer Editus S.A. - Original Message - From: "Tarrant Costelloe" <[EMAIL PROTECTED]> To: <[EMAIL P