User Profile
Collapse
-
thanks so much for your time today. -
I declared the Publisher_id at the top of the code just before the first connect to the db
like this
and no more errors
:o)...Leave a comment:
-
I didn't build the DB just inherited them. I would redesign the table layouts but that is for a total rewrite.
This is what I am trying to accomplish.
the user to type in a zip code through a web form to see if any publisher owns the zip code. If a match is found, the results will return the job number, contact name, phone number, status (active or inactive) of the publisher(s) owning the code. It should...Leave a comment:
-
for some reason it cant find a variable "$Publisher _id" to run the last querry.
I think it looks for on in the first query and if it doesnt find one it prints out
No publisher was found
the error now is:
Notice: Undefined variable: Publisher_id in C:\Program Files\Apache Software Foundation\Apac he2.2\htdocs\ro n.php on line 89Leave a comment:
-
I am wondering if there is a way to include the 3rd query in that first if statement.
Because the 2nd and 3rd query both need the publisher id it seemed to work with 2 but like I said a 3rd it breaks. I used the above code but still got an error.
BTW the indent is a lot easier to read, thanks for that tip ;o)Leave a comment:
-
added another querry
thanks that worked..
I broke it by adding a 3RD Querry though.
I wasnt sure about the WHILE part??
do you possibly have a chance to take a second look?
Parse error: parse error in C:\Program Files\Apache Software Foundation\Apac he2.2\htdocs\ro n.php on line 95
...Code:<?php //update to reflect LIVE server require_once('incs/conn.php');Leave a comment:
-
here is exactly what I have written and the error message is:
Parse error: parse error in C:\Program Files\Apache Software Foundation\Apac he2.2\htdocs\Co py [2] of ron.php on line 45
thank you again....
...Code:<?php //update to reflect LIVE server require_once('incs/conn.php'); ?> </head> <body> <?phpLeave a comment:
-
I took your advice but it seems to be erroring out when it tries to print out the fields just before the "no record found out put"
the error just says parse error no details.
...Code://select the db to use $dbname = 'adnet'; mysql_select_db($dbname); $query_publisher = "SELECT p.`pdata_id_publisher`, p.`pdata_zipcodes` FROM publisher_data p where `pdata_zipcodes` LIKE '%$zipcode%';";
Leave a comment:
-
multiple querries
I need to make multiple queries and the second and third rely on data retrieved from the first one. The 1st one finds a user in a table. If the user is there then we go on. However if they are not there all my other queries are failing because information is missing. I need to gracefully stop the sequential queries if the are not in the db. I am working internally and cant give a link but my code is below.
Thanks in advance.
...
No activity results to display
Show More
Leave a comment: