part 2 to my q. plz help =)

ok I have now made a diff name dbase and table.  
win98
i am using xitami webserver
php4b3
mysql
I have bound mysql to 127.0.0.1 (localhost)
and I have the isapid manager running....
php is functioning correctly when i use other scripts that dont use database..

here is my code so far...
<?


// open link to the mysql dbase

$bd = mysql_connect("localhost","httpd","");

// select dbase.... (bus is there when i use mysql)
$mysql_select_db("bus",$bd);

// busdir is the name of my table in db bus.

$query = "INSERT INTO busdir (dest,company,email,phone,address,city,state,zip) VALUES ('$dest', '$company', '$email', '$phone', '$address', '$city', '$state', $'zip')";

mysql_query($query);

?>

I am still getting this error

"Fatal error: Call to undefined function: () in C:/XITAMI/webpages/addbus.php on line 8"

what does this mean...... aurrghhhhh ( hehe I am getting so frusterated)

 thank you for helping me w/problem everyone.


Z

p.s.  if anyone would like to offer help to further q's would you please leave e-mail address?

thank you...
RainAsked:
Who is Participating?
 
Gerhard100198Connect With a Mentor Commented:
oubelkas, just did. Thanks.

Gravity, there's one born every minute. ;)
0
 
RainAuthor Commented:
Edited text of question.
0
 
RainAuthor Commented:
Edited text of question.
0
Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

 
RainAuthor Commented:
Edited text of question.
0
 
gravityCommented:
Got it... it's the PHP beta 3... I've tried it, and basically if you use mysql_select_db with a connection part, ie the $bd bit, then it screws up for some slack reason. Beta 2 worked perfectly for me as it was ;)

Anyway, the cure :
Use mysql_select_db('bus');

Should cure it.
0
 
Gerhard100198Commented:
They don't call betas the bleeding edge technology for nothing. ;)
0
 
gravityCommented:
I agree... coming from a man who runs Linux using a beta kernel ;)
0
 
oubelkasCommented:
Rain....relaxxxx.....one day it'll all be fine.....don't frustrate yourself too much......or you'll die young....

uhh....sorry, for that, still got my relax tape running. Try gravity's comment, it could help. And hey, Gerhard, did you check the O'Reilly Question yet? Thanks...

Joseph ;)
0
 
Gerhard100198Commented:
oubelkas, just did. Thanks.

Gravity, there's one born every minute. ;)
0
 
oubelkasCommented:
But Linux kicks ass, no matter what...

;)

Oh, Gerhard, does that mean you accepted it? I can't see it though...it's question

http://www.experts-exchange.com/jsp/qShow.jsp?ta=php&qid=10246776 

Joseph
0
 
Gerhard100198Commented:
oubelkas, I did accept it.
0
 
RainAuthor Commented:
i already figured it out thanx.... =)

i'm on a much tougher problem now though
0
 
gravityCommented:
Just out of interest... why was Gerhard's comment accepted as an answer ?
0
 
oubelkasCommented:
ok Gerhard, thx!

Joseph
0
All Courses

From novice to tech pro — start learning today.