Search found 7 matches

by carlo2837
Tue Mar 18, 2014 6:08 am
Forum: PHP coding => General
Topic: disabled selet options
Replies: 1
Views: 265

disabled selet options

Hi I am working on a site for hotel reservations and I have this code in the index page: <td> City: </td> <td> <div id="citydiv" name="citydiv"> <select name="city" id="city" disabled> <option>No cities Available</option> </select> </div> </td> and this is the code in the php script: <?php session_s...
by carlo2837
Sun Jun 09, 2013 5:50 am
Forum: PHP coding => General
Topic: SELECT LAST_INSERT_ID AND SAVE TO VARIABLE
Replies: 1
Views: 714

SELECT LAST_INSERT_ID AND SAVE TO VARIABLE

Hi I am creating an hotel reservation site for a friend.I found a nice tutorial on html.it and the code runs fine from the command line, no problem. Now I need to build an interface say to insert clients's data. So I have a form.My problem is that for the site to work I need to save last_insert_id t...
by carlo2837
Mon May 06, 2013 4:33 am
Forum: PHP coding => General
Topic: parse error in php code
Replies: 1
Views: 777

parse error in php code

Hi hope somebody can help me on this.I am doing an HTML.net tutorial lesson 18 create database and tables, and I keep getting this error: Parse error: syntax error, unexpected 'TABLE' (T_STRING) in C:\inetpub\wwwroot\phpconnect.php on line 6 I have tried everything to fix it but I cannot figure it o...
by carlo2837
Tue Apr 30, 2013 8:10 am
Forum: PHP General
Topic: parser error-unexpected end of file on line 28
Replies: 1
Views: 757

parser error-unexpected end of file on line 28

Hi, could someone please check this code and tell me how to fix it, I cannot figure out where the error is, I am just a beginner with php. Here is the code that I got from a tutorial: <HTML> <?php if($submit) { $db = mysql_connect("localhost", "root","mypassword"); mysql_select_db("learndb",$db); $s...
by carlo2837
Fri Feb 22, 2013 4:06 am
Forum: mySQL & php coding
Topic: cannot connect to DB first time
Replies: 2
Views: 948

Re: cannot connect to DB first time

Hi, actually I succeded in connecting to the server and everything else is working, phpMyAdmin,wamp server and workbench. The only problem now is that sometimes when I waant to use the command line prompt and insert the root password I get a beep, no error message just a beep and the prompt disappea...
by carlo2837
Thu Feb 07, 2013 9:00 am
Forum: PHP coding => General
Topic: Error in php form
Replies: 1
Views: 999

Error in php form

Hi, I am doing PHP Home & Learn Tutorial. I got to the lesson about forms. I keep getting this error: PHP Notice: Undefined index: username in C:\inetpub\wwwroot\basicForm.php on line 7 . This is the code : <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>A BASIC ...
by carlo2837
Fri Jan 25, 2013 4:39 am
Forum: mySQL & php coding
Topic: cannot connect to DB first time
Replies: 2
Views: 948

cannot connect to DB first time

I've installed mysql 5.5 to work with php.From the workbench I tried to connect first time, impossible.I've allowed the program through the firewall,nothing.I read all the tutorials on the subject, still I don't understand one thing. How do I set admin privileges if I cannot connect? If I run the sc...