Free Web Hosting Forum
Go Back   Free Web Hosting Forum > Website Building > Web Programming
Reload this Page Need help to fix my code
Reply

 

Thread Tools Display Modes
(#11 (permalink))
Old
Bad Karma[CORE]'s Avatar
Senior Member
Bad Karma[CORE] is on a distinguished road
 
Posts: 549
Join Date: May 2008
Send a message via ICQ to Bad Karma[CORE] Send a message via AIM to Bad Karma[CORE] Send a message via MSN to Bad Karma[CORE] Send a message via Yahoo to Bad Karma[CORE] Send a message via Skype™ to Bad Karma[CORE]
Default 07-17-2008, 07:47 PM

i still wonder how it can possibly have worked before on his "old site". Maybe i need more beer


(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination.
While Bunny is doing that you might as well visit my Blog
5 Bucks Script Installation Services
Free Web Hosting
Layer-Ads - Das Werbenetzwerk von morgen
Reply With Quote
(#12 (permalink))
Old
Red-X's Avatar
Senior Member
Red-X is on a distinguished road
 
Posts: 359
Join Date: Jun 2008
Send a message via AIM to Red-X
Default 07-17-2008, 08:09 PM

Quote:
Originally Posted by Bad Karma[CORE] View Post
i still wonder how it can possibly have worked before on his "old site". Maybe i need more beer
LOl yeah that's weird
Reply With Quote
(#13 (permalink))
Old
Junior Member
nivram2880@yahoo.com is on a distinguished road
 
Posts: 6
Join Date: Jul 2008
Default 07-18-2008, 03:18 AM

WOW that was great thanks for this forum and thanks to you it was very helpful my code now was working well i will add $_GET["id"]; on the top of my code and its working .. Thanks again.. here now is my code

<?php

$id=$_GET["id"];


$db = mysql_connect("mysql1.000webhost.com", "a3761672_111", "123456");
mysql_select_db("a3761672_11114",$db);
$result = mysql_query("SELECT * FROM music WHERE id='$id'",$db);
$myrow = mysql_fetch_assoc($result);


echo "".$myrow["autor"];

?>


Reply With Quote
(#14 (permalink))
Old
Junior Member
nivram2880@yahoo.com is on a distinguished road
 
Posts: 6
Join Date: Jul 2008
Default 07-18-2008, 05:10 AM

i am also wondering why my old site worked with my old code with out difining $id ... your right thats so weird... LOL
Reply With Quote
(#15 (permalink))
Old
Red-X's Avatar
Senior Member
Red-X is on a distinguished road
 
Posts: 359
Join Date: Jun 2008
Send a message via AIM to Red-X
Default 07-18-2008, 10:33 PM

Glad it worked
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.6.9
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0
vBulletin Skin developed by: vBStyles.com