Click here to Skip to main content
16,008,469 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: problem with IE 7 Pin
Guffa5-Dec-06 3:31
Guffa5-Dec-06 3:31 
GeneralRe: problem with IE 7 Pin
Alagu Sundaram7-Dec-06 1:28
Alagu Sundaram7-Dec-06 1:28 
GeneralRe: problem with IE 7 Pin
theJazzyBrain27-Nov-06 22:14
theJazzyBrain27-Nov-06 22:14 
GeneralRe: problem with IE 7 Pin
Alagu Sundaram27-Nov-06 23:36
Alagu Sundaram27-Nov-06 23:36 
Questiondeploy web service on remote iis Pin
steve_rm26-Nov-06 20:31
steve_rm26-Nov-06 20:31 
Questionphp to sql Pin
Arif Liminto26-Nov-06 16:51
professionalArif Liminto26-Nov-06 16:51 
AnswerRe: php to sql Pin
Paul Conrad26-Nov-06 16:57
professionalPaul Conrad26-Nov-06 16:57 
AnswerRe: php to sql Pin
Bradml26-Nov-06 18:39
Bradml26-Nov-06 18:39 
Yes I see it. The Variable that holds the SQL statement is called "$querry", whereas you refer to it as "$query".

In addition to that you have made optimization mistakes.

echo"<TABLE BORDER = '1'>";<br />
echo"<tr>";<br />
echo"<th>Name</th><th>number</th>";<br />
echo"</tr>";<br />
<br />
while($row = mysql_fetch_array($result))<br />
{<br />
echo "<TR>";<br />
echo "<TD>",$row['firstname'],"</td>",<br />
"<TD>",$row['lastname'],"</td>",<br />
"<td>",$row['adress'],"</td>";<br />
echo"</tr>";<br />
}<br />
echo"</table>";


While be formatted faster if written like this:
?><br />
<TABLE BORDER = '1'><br />
<tr><br />
<th>Name</th><th>number</th><br />
</tr><br />
<br />
<?php<br />
while($row = mysql_fetch_array($result))<br />
{<br />
echo "<TR>";<br />
echo "<TD>",$row['firstname'],"</td>",<br />
"<TD>",$row['lastname'],"</td>",<br />
"<td>",$row['adress'],"</td>";<br />
echo"</tr>";<br />
}<br />
?><br />
</table>


While that may seem to be a subtle difference it can save about 25-40% of the time it takes in execution (essential for large amounts of printed data)





Brad
Australian
By contacting your lawyer you negate the right to sue me.

GeneralRe: php to sql Pin
Arif Liminto26-Nov-06 22:45
professionalArif Liminto26-Nov-06 22:45 
GeneralRe: php to sql Pin
Bradml26-Nov-06 22:53
Bradml26-Nov-06 22:53 
QuestionScrolling within a table cell Pin
gantww26-Nov-06 16:08
gantww26-Nov-06 16:08 
AnswerRe: Scrolling within a table cell Pin
Shog926-Nov-06 16:37
sitebuilderShog926-Nov-06 16:37 
GeneralRe: Scrolling within a table cell Pin
Chris Maunder26-Nov-06 18:24
cofounderChris Maunder26-Nov-06 18:24 
GeneralRe: Scrolling within a table cell Pin
Bradml26-Nov-06 18:33
Bradml26-Nov-06 18:33 
GeneralRe: Scrolling within a table cell Pin
Chris Maunder26-Nov-06 18:41
cofounderChris Maunder26-Nov-06 18:41 
GeneralRe: Scrolling within a table cell Pin
Bradml26-Nov-06 18:44
Bradml26-Nov-06 18:44 
GeneralRe: Scrolling within a table cell Pin
Chris Maunder26-Nov-06 18:45
cofounderChris Maunder26-Nov-06 18:45 
GeneralRe: Scrolling within a table cell Pin
Bradml26-Nov-06 19:03
Bradml26-Nov-06 19:03 
GeneralRe: Scrolling within a table cell Pin
Chris Maunder26-Nov-06 19:09
cofounderChris Maunder26-Nov-06 19:09 
GeneralRe: Scrolling within a table cell Pin
Bradml26-Nov-06 19:38
Bradml26-Nov-06 19:38 
GeneralRe: Scrolling within a table cell Pin
Shog926-Nov-06 19:59
sitebuilderShog926-Nov-06 19:59 
GeneralRe: Scrolling within a table cell Pin
Bradml26-Nov-06 20:14
Bradml26-Nov-06 20:14 
Questionmy chat program is not running Pin
mahili26-Nov-06 12:44
mahili26-Nov-06 12:44 
AnswerRe: my chat program is not running Pin
Christian Graus26-Nov-06 12:52
protectorChristian Graus26-Nov-06 12:52 
AnswerRe: my chat program is not running Pin
Chris Maunder26-Nov-06 18:23
cofounderChris Maunder26-Nov-06 18:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.