39,402 Topics
![]() | |
Hi I am trying to teach myself some php and get this error (below) when I query a sql database this is just a tutorial and will never go live. I have hilighted the area in bold where the unseen error is. Warning: mysql_fetch_assoc(): supplied argument is not a valid … | |
Thanks in advance for checking out my problem. Here is a fictional version of the scenario I am trying to achieve - let's say you are searching for a Department of Motor Vehicles office closest to you. So you go to a website and you plug in your zip code. … | |
when a user enters invalid username or password i redirect him to the login page again..but how can i display a message invalid usernmae in the login page..kindly help.. | |
Dear buddies,, `Fatal error: [] operator not supported for strings in c:\PHP5\www\\registration-reports-result.php on line 197` and the 197th line is if($english_level!='0'){ $query_array[]= "reg_english_level.english_level1 = '". $english_level . "' OR reg_english_level.english_level2 = '". $english_level . "' OR reg_english_level.english_level3 = '". $english_level . "'";} any help is appreciable.. Jino.. | |
Hi, i am using PHP objects generated by pog generator.but the save method does not seem to work. why does this happen | |
I have absolutly no idea what this error means or what it requires me to do but i'm getting this error message: Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'DOC__ROOT/library/classes/class_dao.php' (include_path='C:\Program Files\Zend\ZendStudio-5.5.1\bin\ZendFramework\library') in C:\xampp\htdocs\capat\library\classes\class_engcis.php on line 18 [B]this is class_engcis.php[/B] [code=php] <?php /** * * engCIS local version * … | |
Okay, here goes. Learning PHP and am having trouble building a program that would let a client insert inventory in the database without having any knowledge of MySQL or PHP. Here is what I have so far: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; … | |
First of all, I've just joined, so Hi to everybody. I'm also just starting to learn php, I have what I thought would be something simple but I keep getting this error Parse error: syntax error, unexpected T_STRING in /home/sites/poem-n-verse.co.uk/public_html/votes/process.php on line 8 Here is the code that I'm trying, … | |
Hello friends. I want to know , how twitter adds [email]twitter@twitter.com[/email] to Gtalk to update a user group posts through IM. If anyone has any idea then do reply me. Thank you in advance. With regards Sandesh | |
Dear members how i can delete a record from a table in php?Give me the code plz... | |
I have a problem of how I could echo a certain element of an array. It's easy enough when you know how many keys and what they are. The problem is, even though I know what the keys are, I don't know how many there, I can find out how … | |
iam designing a login page..while validating the login ..i have to check whether the user is ordinary user or administrator...i have to display different page for each one..i did the validation process..but how to switch to administrator.php say if the user is an administrator..can i use <form> for this.. | |
Hello Friends, I am having trouble figuring out how to get me Radio Buttons to search my database. Everything is up on the page and when I select enter it just shows all the items as if nothing was entered. There was already a set search button in the script … | |
Hello, I am trying to use the sql delete from statement to delete certain data (which are urls) from my db, but they don't seem to actually get deleted. (there are no errors, of course, so it looks like the code is working, but the data does not actually get … | |
i'm fascinated by the tooltip or the information bubble , which pops-up on this page when I point my cursor on a thread title. Does anyone know what it takes to code something like that? Is it possible with PHP, javascript or AJAX ? The attached image shows the tooltip … | |
Dear Friends, I am happy to join in this team. I need a help in deciding the best open source PHP editor which supports Linux and windows. The features I am looking for are : User friendly, Syntax helping, display the list of procedures/functions just by typing first letter, auto … | |
Hi, I have a PHP Script. I need the referrer website address for this script. I used the following 2 commands: getenv('HTTP_REFERER'); $_SERVER["HTTP_REFERER"] I believe both are the same. But in majority of the cases I am unable to get any values using the above 2 variables. I would not … | |
iam using wamp server 2....i did not give any usernmae or password for connecting sqlserver during the process of installation..now when i tried to connect my database through php script using mysql_connect("localhost","","") iam not getting connected..it displays access denied.. how can i get connected to my database..kindly provide help.. | |
hi i have a dynamic table.i want to rows in alternative colours $nr0 displays the no of rows fetched [ICODE]while ($row=mysql_fetch_array($rs)) { ///////////////////////////////////////////////////////////////////////////////// //This is used to show the serial number on the page as well as to count it up //so that we can get the next page's starting … | |
Hi Guys Look at this Page = [url]http://clickapic.co.nr/surf.php[/url] There are 2 links. [url]http://1.fabriconengineers.com/view.php?ad=18[/url] [url]http://1.fabriconengineers.com/view.php?ad=17[/url] If i visit both links at a time then one of it says "done" and other says "X" i.e. only once advertisement can be viewed at a time. I want that script to allow multiple ads … | |
dear master, from our query get result like this : date ------------name------ num1 2008-02-01 ------john ---------100 2008-02-02-------john --------200 2008-02-03 ------john --------300 2008-02-01 ------dave--------400 2008-02-02------dave--------500 2008-02-03------dave--------600 if we wanto chane from row to colum and get result like here name--------2008-02-01 -------2008-02-02--------2008-02-03 john---------100---------------200-----------------300 dave---------400--------------500-----------------600 how in scrip php thankyou | |
Hi this is Scorpion I have create 5 pages on PHP and 1 login Page. Now the issue is that if user didnt login to the Website, then he cannot view those pages and simply he/she must direct to login page if click to other categories of Page. I have … | |
I'm a newbie to PHP and arrays are giving me a problem. I'm converting BLOBs of data from a MySQL database. Each of these BLOBs is the body portion of HTML files I'm converting to XHTML. Mainly, I'm checking <p> tags for case and closing tag. There are over 500 … | |
hi all, i have a login page and a couple of other php pages. what i want is that nobody should be able to view my other php pages without logging in. i have tried with sessions but sadly session is not working with me. can anybody tell me of … | |
hi to everyone.. can anyone here in the forum an teach me hoe to configure "SMTP" and "smtp_port".. i'm having problem with that.. tha script ask me to configure it in php.file.ini.. but the problem is i don't know how to do it.. i'm on the process learning php.. please … | |
hi there, i have started session in my first page(login page). on fulfilling the validations the user is taken to the next page. in the second page, first i check whether session is set or not, and if it is not set the flash an error message to the user … | |
how to untar a file with tar.gz extension in php script. i have written a php script for uploading a tar.gz file amongst many files. i have to untar this file. how will the command be like? till now what i have done is - consider for uploading i have … | |
how to implement tar command through php script? | |
I don't have the code as I keep following examples that don't exactly work. So, here is what I am trying to accomplish: 1: Something similar to what this site uses to reset lost passwords 2: Redirect a user based on url in the table Any help or direction would … | |
need some advise here...just create a simple form..but i had problem with validation.hope somebody can help me.. [B](register.html)[/B] <form id="FormName" name="name"method="post" action="added.php" name="name"> <input id="name" name="name"type="text" name="name"><br> <input id="email" name="email"tpe="text" name="email"><br> <input id="contact" name="contact"type="int" name="contact"><br> <textarea id="person_attend" name="person_attend" rows="4" cols="40"></textarea> <textarea id="comment" name="comment" rows="4" cols="40"></textarea> <input type="submit" name="submit"> </form> <? … | |
Having problems displaying images randomly within a table cell from a folder I am looking for any suggestions. | |
Hi This is Scorp I have Little issue about phpmyadmin. When i write [url]http://localhost/phpmyadmin[/url] on my url and Press Enter i got the Login Screen and i tries every username and password, but everytime it gives same error Error MySQL said: #1045 - Access denied for user 'pma'@'localhost' (using password: … | |
Hi, Could someone please tell me what is wrong with this code because i have tried loading it but it's not giving me any error to know where the problem lies. [code=php] <?php /** * * Global configuration file for CAPAT */ // Site Setup error_reporting(0); session_start(); // Turn off … | |
After the user has inputted their respective username and password, it will be validates and if the submitted information was true, they will redirected a page. Now, I just want to the the php code that captures the username and display it on the page. Like "Welcome BooBoy08 to here..". … | |
I am using a new script Tukanas Freelance Script, everything else works fine on the user panel but when it comes to admin panel cannot log in, tried to manually create a username and password in sql but try and login says user not verifed how can i verify it … | |
$result=mysql_query("select employer.employer_id,employer.companyname,post_job.jobtitle,post_job.owner,post_job.tdate,post_job.id from post_job,employer ORDER BY tdate.post_job ASC LIMIT 0,10 ") or die("ERROR:".mysql_error()); it is not working.......... | |
Hi guys, I am a bit stuck and after some help. I studying through a book called practical web 2.0 applications. Through this book you build a full application as you are learning. Now I have got to a section and can't go further. When I go to insert data … | |
[B]Hi, I am new to php. I want to read an excel file(.xls) and write the data to another file using php[/B] | |
I have successfully uploaded image to mysql database using a form: This is the code: <?php $errmsg = ""; if (! @mysql_connect("localhost","root","")) { $errmsg = "Cannot connect to database"; } @mysql_select_db("adim"); if(isset($_REQUEST)) { $imgtype=$_FILES; $name=$_REQUEST; $address=$_REQUEST; $dateofbirth=$_REQUEST; if($imgtype=="image/jpeg" || $imgtype=="image/jpg" || $imgtype=="image/pjpeg" || $imgtype=="image/gif" || $imgtype=="image/x-png" || $imgtype=="image/bmp") { $image=$_FILES; … | |
Hi i'm currently making a highly modular forum in PHP and i'm running into a slight problem with an error handler that i have started on and it has been stumping me, any help would be very much appreciated. | |
Hello everyone I am developing an application in which , i wrote the code for a pop up confirmation box in javascript, & when it presees ok , i want to call a PHP file from javascript......tried but not working......if anybody can help, would be great...... roja. | |
I have a problem with session in combination with DNS. I use have a webpage where some areas are restricted. So I use a log-in screen which sets the session username and writes the sessionid in a DB. When you try to access a restricted page, a script checks if … | |
Hi I need to create c++ help website in which I'll add tutorials and snippets So what do I need to learn to let the users add their own snippets and tutorials also add a phpbb forum a webbsite like Daniweb or dreamincode.net help please | |
I work with joomla and i want to build a module for tourism field. Anyone have a relative module ? | |
How can I invoke a shell script with parameters from within a PHP script? For example, from within my web-based PHP script, I want to execute the command "/home/cscgal/script.sh -f foo" | |
Hello everyone, I am developing a virtual pet site that is based on PHP, CSS and MySQL. I am currently learning PHP and MySQL myself but require some genius minds to help me develop my community and ideas ready for a big launch in March/April. [B]Things I require help with … | |
Hello everyone and happy christmas, I have a virtual pet website which has multiple level users, or if you like, different ranks from 1 - 10. 1 is suspended and 10 is master admin. I have worked out how to give access to an admin page for users with the … | |
i have wamp server 2.0...iam new user of php..i wrote my script in notepad and saved it in the directory i created in www folder with extension php..but when i tried to run my script using wamp..the script file is with extension .php.txt and the server just displays my entire … | |
Dear All,, My php page having a search query is not displaying the result when it is loaded... But when i check this same query in php my admin it is working correctly... for ex: If i search with the field "Marital Status" Single... There are totol 3 records having … |
The End.