473,325 Members | 2,771 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

connection with my sql via a html page

I create a html page & a database in mysql.I want when i submit my quary in a html page by pressing submit buttom.then it can show me the result.result can extracted from mysql data base.and show in my current php page....
Mar 21 '07 #1
4 1405
vssp
268 100+
I create a html page & a database in mysql.I want when i submit my quary in a html page by pressing submit buttom.then it can show me the result.result can extracted from mysql data base.and show in my current php page....

I think No way to connect the database html page
Mar 21 '07 #2
code green
1,726 Expert 1GB
The submit button directs the user to a php script where the following functions can be used.
mysql_connect() then
mysql_select_db() then
mysql_query()

HTML and php can be mixed on the same page
Mar 21 '07 #3
The submit button directs the user to a php script where the following functions can be used.
mysql_connect() then
mysql_select_db() then
mysql_query()

HTML and php can be mixed on the same page

You can do the same thing in ajax, thats the better way. By using ajax u can call PHP script from server and grab its output and display it on your page. Not only php but you can use any suitable server side language.
Mar 22 '07 #4
ronverdonk
4,258 Expert 4TB
You can do the same thing in ajax, thats the better way. By using ajax u can call PHP script from server and grab its output and display it on your page. Not only php but you can use any suitable server side language.
I really cannot see any advantage of using Ajax for this when you want to show a new results page. Ajax is very handy when you want to show the results within an existing page without page reload, but using it to show a completely new page is a lot of unnecessary extra coding.

Ronald :cool:
Mar 23 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Dennis Hueckelheim | last post by:
Hallo everybody, I have a problem with a little socket script. ----- snipp ----- $out_clients = socket_accept($socket_out); $http_welcome = "HTTP/1.0 200 OK\r\nContent-type:...
1
by: Bina Desai | last post by:
I get the following error: Error Type: Microsoft VBScript runtime (0x800A01A8) Object required: '' /myweb4/authorised_user_page.asp, line 70 and line 70 of my code is: <% rsCheckUser1.Open...
8
by: DP | last post by:
I read some articles and post how to optimize te speed of asp pages regarding opening and closing DB connections but I am still not sure about this. Is it true that it doesn't matter how many...
13
by: Larry | last post by:
Hi I have asp.net programs. I used a very simple data transfer method by using URLs ˇ°First.aspxˇ± contents a line to send data to the ˇ°second.aspxˇ± page, for
7
by: mfeingold | last post by:
I am working on a system, which among other things includes a server and a ..net control sitting in an html page and connected to the server. I ran into a couple of problems, you guys might have...
0
by: tony dong | last post by:
Hi there I use vs.net 2005 with standard sql 2005 under machine\sql2005 for instant when I create webpart, the code get from quickstart as follow: <%@ Page Language="C#" %> <%@ Register...
6
by: jonefer | last post by:
I have two versions of a 'Downtime Application that will run in the event that the mainframe goes down 1) SQL Server ASP.NET app (accessed outside the mainframe network) 2) MS Access Version of...
3
by: Jennifer | last post by:
Hi. I don't know a whole bunch about html and asp pages, but I thought I'd give it a try to see if I could get it to work. I found an example for a calendar event page from Microsoft at: ...
1
by: Jennifer | last post by:
Hi. I don't know a whole bunch about html and asp pages, but I thought I'd give it a try to see if I could get it to work. I found an example for a calendar event page from Microsoft at: ...
9
by: mel | last post by:
Hi all, I need a persistent TCP connection with my web server over page reloads. This means that, even if the user goes to a different page (in my domain), I want to keep a TCP connection...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.