> 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
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?
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
>
>
> -
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,
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
$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
$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" <[
$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
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
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
10 matches
Mail list logo