473,395 Members | 1,577 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,395 software developers and data experts.

SQL Query Problem on Dynamic PHP Page (HELP!)

I'm having trouble with my SQL statement for a PHP/MYSQL page I am
creating. The search page is located at
http://dcavello.phenominet.com/alumn...umnisearch.php and the
results page at http://dcavello.phenominet.com/alumn...mniresults.php

Here is the code for the results page:

<?php require_once('../Connections/connAlumni.php');

mysql_select_db($database_connAlumni, $connAlumni);

$query = sprintf("SELECT s FROM tb_alumni WHERE %s LIKE
'%%%s%%'",$_POST['search'],$_POST['keyword']);

mysql_select_db($database_connAlumni, $connAlumni);
$rsAlumni = mysql_query($query, $connAlumni) or die(mysql_error());
$row_rsAlumni = mysql_fetch_assoc($rsAlumni);
$totalRows_rsAlumni = mysql_num_rows($rsAlumni);
?>

Can anyone direct me to where I might be going wrong? Thanks.
Ryan
--
To reply, please remove your robe.

Jul 19 '05 #1
0 969

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ryan Sullivan | last post by:
I'm having trouble with my SQL statement for a PHP/MYSQL page I am creating. The search page is located at http://dcavello.phenominet.com/alumnidev/alumnisearch.php and the results page at...
5
by: Mark | last post by:
I'm interested in displaying a dynamic page title, rather than the static html <title>My Page</title>. In a previous posting, I had seen a suggestion of making the title into a server control...
3
by: vodafone | last post by:
Hy all I've a little problem. I need to write a dynamic page that render control according to validation status return from previous control validation status. To be clear, I've page that...
4
by: Chris | last post by:
Can anyone recommend how to do a screen scrape from a dynamic page and save it to a text file? Regards, Chris.
4
by: Ed Jay | last post by:
I generate a DHTML page (a medical report) with dynamically generated text based on user input (answers to questions). The page length changes dynamically. I desire that when the page is printed...
1
by: florencepushpa | last post by:
hi, i need to create a staic and dynamic page in html.pls give the code. Thank u Pushpa
5
by: ycquak | last post by:
Hi, Currently I need to read contents from a dynamic page, which goes something like: http://servername/filename.jsp?arg1=a&arg2=b The content is not static, neither is there a file for me to...
1
by: braich | last post by:
Hi All I am new to PHP and have been reading few basic books on PHP. I am trying to create a dynamic page based on the keyword in the url. Let’s say I have...
6
by: RoomfulExpress | last post by:
Here's the problem that I'm having- I'm trying to pull in 2 fields from my database and place them in the title of the HTML. I'm connecting to the db and selecting everything exactly the same as I am...
0
by: vijay bharath | last post by:
how to take backup of database using java by query itself? please help
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.