You are here: php and insert query « PHP SQL « IT news, forums, messages
php and insert query

Posted by seeker55 on 10/06/27 11:55

I have a insert.php which is suppose to show a record on the screen. I
run it and see nothing on the screen. following is the code used

<?php
$mysql_id = mysql_connect(localhost, 'root', 'kali');
mysql_select_db($mysql_id, 'memphisproject');
$result = mysql_query($mysql_id, select * from tblsponsor);
while ($row1 = mysql_fetch_row($result)) {
echo $row1[0];
}
mysql_free_result($result);
/>

This is on a test box to eventually be transferred to a web hosting
company. Another question is when you build a database with phpmyadmin
where is it stored on the test box. what is the connection string to be
used. Thanks in advance

seeker55


--
seeker55
------------------------------------------------------------------------
seeker55's Profile: http://techiegroups.com/member.php?userid=181
View this thread: http://www.techiegroups.com/showthread.php?t=114402

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация