NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page im about to go insane

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search
5 members in live chat ~  


Closed Thread
 
LinkBack Thread Tools
Old 05-29-2003, 01:50 PM THREAD STARTER               #1 (permalink)
Senior Member
Join Date: May 2003
Posts: 2,187
adam_uk is a jewel in the roughadam_uk is a jewel in the roughadam_uk is a jewel in the rough
 


Breast Cancer

im about to go insane


PHP Code:
<?
include("config.php"); 
$select "SELECT * FROM `news` WHERE id = '$id'";
$resultmysql_query($select); 
while(
$data mysql_fetch_array($result)){
????: NamePros.com http://www.namepros.com/programming/14816-im-about-to-go-insane.html
$id$data["id"];
$newstitle$data["newstitle"];
if (@!
$my_notes){
$my_notes "No Notes Where entered";
}
}
?>

<html>
<head>
<title>arrghh</title>
</head>
<body>
<? echo $newstile?><br>
????: NamePros.com http://www.namepros.com/showthread.php?t=14816
</body>
</html>

:cries:

anyone tell me whats wrong with this code?

if i go to news.php?id=1 nothing works but if its changed to this all to this

PHP Code:
<?
include("config.php"); 
$select "SELECT * FROM `news`";
$resultmysql_query($select); 
while(
$data mysql_fetch_array($result)){
$id$data["id"];
$newstitle$data["newstitle"];
if (@!
$my_notes){
$my_notes "No Notes Where entered";

}
}
?>

<html>
<head>
<title>arrghh</title>
</head>
<body>
<? echo "$id <br> $newstitle?><br>dsfasdfasdfasdf
</body>
</html>

it selects the values but it doesnt work with the ?id=1


:cries:
adam_uk is offline  
Old 06-01-2003, 11:33 AM   #2 (permalink)
Senior Member
Join Date: Aug 2002
Posts: 1,255
deadserious has a spectacular aura aboutdeadserious has a spectacular aura about
 



Hey I see one reason why you may not get any results on your first example, you have $newstile and I think it should be $newstitle.

I'm a novice when it comes to MySQL coding, but why do you have the back-ticks around your table names in your SELECT query? Those aren't needed are they? Just wondering.
deadserious is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


 
All times are GMT -7. The time now is 02:04 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger