39,393 Topics
![]() | |
Hello everyone, I'm currently building a cms system and have hit a brick wall in relation to the error I'm getting below. Any help would be greatly appreciated. Thanks James. The error: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\wamp\www\widget_corp\includes\functions.php on line 41 The functions.php: … | |
Hi, I have a table docque where I have 3 fields in it. Id,quest,answ.I will enter question and display it when I click on that question answer must be shown.Here is my code: [code] <?php include ("conn.php"); $str='SELECT * FROM docque '; $res=mysql_query($str); if($res) { while($data=mysql_fetch_array($res,MYSQL_ASSOC)) { echo '<tr>'; echo … | |
Hi, Can anyone help me in writing a script for polls or voting.There are many scripts available,download them and use,but I wanted to write my own script.I have a question and 4 optins for that.I wanted to display the results in percentile and a color bar.Do I need to use … | |
Hi I'm a bit confused but I think I know what Im missing. Story goes, I have a website which allows users to upload logos - I want them to be able to upload new logos if they want to... but the page that allows them to change their logo … | |
I am trying to get a script to work on a new server. The script was written by someone else, but it doesn't seem to work after I changed to another server. The script involves the submitting of articles, and uploading of a photo to each article written and submitted. … | |
hi i have a vb application an to invoke it in a php page i used exec('app.exe'); but before this statement i have a lot of echo statements but when the page is loaded the echo statements are not displaying and the application is running and when i exit from … | |
How can I display a new quote each day - to get a quote from the DB is simple, but how to change the quote every 24 hours? | |
I have set a tooltip so that when user mouseover a picture it will display a tooltip which is the cake name. The problem is the tooltip can be display when i run the web using the mozilla firefox browser but in Internet Explorer it seems that the tooltip is … | |
Below is my line item - it returns 'meeting times'. However, there are some cases in my DB where the meeting time is not known and the field is null. I'm wondering if I can completly remove the 'echo' on my page if the field is null? echo "<p<b>Meetings:</b> $variable21</p>"; | |
Hello, I am currently creating a PHP calculator, and I so far have been successful until this point. I want to include a exponent calculation feature, using the "pow()" function. Also, I am just curious if there is a more efficient way to code this. Here is my PHP source: … | |
hi friends, i have problem with Arabic language in php page, how i can display the Arabic language in my pages. | |
Hello, Firstly, Merry Christmas to everyone! :cheesy: I'm thinking of installing PHP on WinXP Pro, using IIS 5.1 as my web server. I have browsed around and there's 2 versions of PHP( i.e. PHP4 and PHP5). I have no prior knowledge or experience in PHP whatsoever. I only did some … | |
i had made friendly url for my page, and the first Rewrite Rule was working well, but the second and other Rules are not working and show error 404 page, i try to solve this problem since last 3 days but still can not figure out, this is my last … | |
As it exists now, I have some PHP code set up so a customer can "login" with his/her customer number (job number). But I want to give them the option to use either their number or their email address. I understand the code for 1 option (job number), but am … | |
Hey, im having a problem getting this email check to work it basicly prints out in a very origional way how manny eails you have... [COLOR="Green"][B]Check Inbox [/B]([I]3[/I]) [/COLOR] Heres the code: [CODE]$find_content = "SELECT * FROM email WHERE email_too_id = '$userid' OR all = 'true'"; $content_sql = mysql_query($find_content) or … | |
Hello, I am trying to get my own(paid) website. But I am not sure about what steps I should take. I understand that signing up with a hosting company will get me storage and scripting functionalities. But I don't understand the process of getting a domain name of my choice. … | |
I have several issues going on I have played with the code, and I have tried to follow other code snippets / tutorials as examples, but I am unable to achieve the following: 1: when the browser is closed the session is terminated or set a timeout period of inactivity? … | |
Hi, First of all I am Sorry for such a long query. I am using mysql db.I wanted to display data present in the db.I am using two functions showdiv() & hidediv(). For example,I have 26 tables in my db say from A-Z.In each table it has some info.for examp, … | |
Hi, I was wondering if people could help me understand PHP vulnerabilities, before I begin I explain my situation. I'm taking a 3rd year computer security course at university (for fun I have already graduated and got a job). The subject includes secure PHP programing. As an assignment we where … | |
Hi everyone, Can anyone tell me how you can stop users from URL Hacking your website with php (sessions)? So for example if you have a password and username form on the front of your website and only want authorised members to gain access to your web site. So for … | |
Please all I need your assistance to give me a guide line on how to write PHP CODES or give me sample of maybe user name and password only i will appreciate your effort tanx and more blessing. | |
hello!!! could anyone tell me how can i use php with oracle?? i have installed wampserver and oracle 10 (oci10) but it doesn't work, i think they are incompatible (wamp is only for oci8) what other php packet could i get for oracle 10? what is your advice? thanks !! | |
Straight to the point...:) I have problem connect to database. when I click Login button, the code can't read the username in my database. I have checked the codes but i think there are some mistakes, but i don't know where it will be. Please help me. Here with I … | |
Hi All, Using php and MySQL, I completed a login session script and it works great. I am assigning the username and password to select users, and there will be no registration form. My "users" table in MySQL has 5 columns as follows: [LIST] [*]id [*]username [*]password [*]company [*]last_login [/LIST] … | |
Am using this code(shown below) 4 uploading an image. while using this getting an error like 'there was an error moving the uploaded file" what could be the reason for this? Though an error occurs,am still able to upload the image successfully. ie the image is saved at tha intended … | |
Small script to pull information from [url=http://trac.edgewall.com/]Trac[/url]. Note that this will [b]only[/b] work if you set up your trac environment to use a MySQL database (It is pretty simple to switch from SQLite to MySQL though). It uses template format just to make it easy to customize. I originally had … | |
Hello, New poster here: just starting with PHP, slow learner, not finding what i want in online manual (prolly me, not the manual). I've found an extremely simple js library which does exactly what I want: in "index.htm", you click on "div#1" and the text in "div#0" is updated from … | |
Parse error: parse error, unexpected T_STRING in on line 21 [COLOR="Red"]21 = $query = “select * from users where username=’$username’ and password=’$password’”;[/COLOR] mysql_select_db("$dbname", $connection); session_start(); $username = $_POST[‘username’]; $password = md5($_POST[‘password’]); $query = “select * from users where username=’$username’ and password=’$password’”; $result = mysql_query($query); if (mysql_num_rows($result) != 1) { $error … | |
hello everyone, i badly need your help well, i have already implemented my chatroom in [B]PHP[/B] which runs perfectly on a single computer. however, when i have tested the chatroom over a network where atleast 2 computers accessing my chatrrom, [B]it appears on 2 separate frames[/B] that is, if 2 … | |
Hello, The following is a code excerpt I found on the web. Could someone please tell me where I can find information about how to use [I]$$[/I] variables and [I]${$var}[/I] variables. I have never seen them before. [CODE]foreach ($expected as $formvar) $$formvar = (isset(${"_$_SERVER[REQUEST_METHOD]"}[$formvar]))? ${"_$_SERVER[REQUEST_METHOD]"}[$formvar]:NULL;[/CODE] |
The End.