39,320 Topics
| |
Hello, I have got an error when i run this code.My query is updated but when I fetch the query then i got this error **mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\wamp\www\html-contact-form-captcha\update.php on line 44** please check the code is given below:- **** <!DOCTYPE html PUBLIC … | |
OK gang! I have another stumper! I want to add a variable to an array from within a function and I will not know the variables original name so how can I find this? For instance: [CODE] function AddVariable($vartoadd) { $varlist[] = $vartoadd; } $domain = http://www.dodatingsiteswork.com; AddVariable($domain); [/CODE] Once … | |
I have 2 table: 1 name is movie and another's name is screen. movie table contains fields like movie_id,movie_name etc. screen table contains fields like movie_id screen_id etc. I am going to add data in my screen table by user. So i want that if user enter the movie_id which … | |
The private messages inbox display nothing.Can't find the error.Can anyone help?????????? <?php session_start(); require("configure.php"); if (isset($_POST['view'])) { $query = mysql_query("SELECT * FROM messages WHERE to_user = '$to_user' AND deleted = 'no'")or die(mysql_error()); while($row2 = mysql_fetch_array($query)) { echo "<table border=1>"; echo "<tr><td>"; echo "Message ID#: "; echo $row2['id']; echo "</td></tr>"; echo … | |
I am a newbie to php. I am simply trying to validate input from a login page. However I am always getting a positive boolean value when username is entered or not. Following is my code for the login page; [ICODE]<form method = "post" action = "entering.php"> LOGIN <br /> … | |
Okay, so I would like to say in advance, thank you for the help. With that said, I am having an extraordinary amount of trouble with some code. So here it is: function school_user_exists($school_user = false, $school_id = false) { if($school_user || $school_id) { $school_user = sanitize($school_user); $school_id = (int)$school_id; … | |
pls someone should pls tell me what is api and how to start writing the program. thanks for ur assistance | |
Hi, I'm trying to write a program using mysqli, so I have created a login page. I've tried looking for how to get an Insert statement ran using MySQLi, object orientated style. So it looks like my query isn't working but I don't know why so I wondered if someone … | |
Here is my code.. I'm not sure if there is easyier way of doing this or not.. but pretty much what im looking to do is display the user invoice from a session variable.. the session variable would be MM_Username. $colname_curinvoice = "-1"; if (isset($_SESSION['MM_Username'])) { $colname_curinvoice = $_SESSION['MM_Username']; } … | |
I recently applied for a PHP programming job and they required me to do a coding challenge. One of the challenges involved simulating the card game war which I found intriguing. I "over-engineered" it as they requested, but I still don't think it was good enough for them. Is there … | |
Hi After learning jquery for about a month, I make an attempt to make username & password authentication form. Howver, i get stuck 2 days now, and i will soon start bumping my head against the wall. What I am trying to do is if user enter the wrong username … | |
| Wanted to say a quick thank you to all those who helped me with my php questions. But I failed on the technical side, so didn't get the job. I'd post up the questions but it's pretty straight forward. I just too long I guess. ta |
I am not to sure where to put this post but this seemed like the best place. I am currently writing scripts for page redirects, however, I can not get my .htaccess redirects working first. I need to take from my root, and redirect to a subscript: http://www.example.com -> /index.php … | |
I am makeing a comment system, i have a string where i remove html code: `$area = stripslashes(htmlspecialchars($area));` But i replace text sometimes by code, but it doesn't work because of the code above: $txtSmileys = array (':-)', ':-('); $imgSmileys = array ('<img src="smiley.jpg" />', '<img src="smiley-sad.jpg" />'); $text = … | |
Hi friends, I want to built a website in php but i am totaly confused. plz do help me..want it to be perfect..!! | |
I have the following codes, I wanted to show a message box when the value in month (in the textbox) is less than the value of $month (date("n")), when the next button is clicked. When I run my code, the next button disappears! Please help me to solve my problem. … | |
this is weird, I have form and on this form three file uploads and submit button, when i change the button to image (so it looks better than this old thing on my website) it does not upload the files The button however works 100%, am i missing something here? … | |
this is my code which working,and every image is posted with it's original name but i want it to have little one.. i want it to overwrite the uploaded image <?php error_reporting(0); $change=""; $abc=""; define ("MAX_SIZE","400"); function getExtension($str) { $i = strrpos($str,"."); if (!$i) { return ""; } $l = … | |
Hello, I am trying to replace the default submit button with custom submit button how? This is the default submit button: <input type="submit" value="Submit" /> This code only place the image: <input type="image" src="images/button-kirim.jpg" alt="Submit details" /> How to place the custom submit button and still make it work like … | |
Hello I installed XAMMP for learning php on my local drive when it was completed. I run a simple programming but I receive error 404 what would be my issue with XAMMP, the installation is successful Any recommendation, I want to switch | |
what is the simplest way i could encrypt my php code from advanced php programmer? | |
| |
so i have this mini project to make i'am thinking of making a website just like grooveshark basically what i want in my website would be :- A LIBRARY OF SONGS PLAYER ON WHICH ONE CAN LISTEN DIFFERENT SONGS USER CAN CREATE HIS PROFILE AND CAN MAKE HIS OWN PLAYLIST … | |
How do i add variables from $var1=urlencode(''.$var1.''); on page one.php and use the values from the above variables on page two.php $var1 = $criteria['".$var1."']; if($var1=='') $var1 = ''; Page two is included in page one and I am trying to use the same variable value. | |
Can somebody help me to create an appointment scheduler with php/mysql that automatically create appointments. | |
Parse error: syntax error, unexpected T_DNUMBER in D:\InetPub\vhosts\xdran.com\httpdocs\settings.php on line 7 heres my configuration <? error_reporting(E_ALL ^E_NOTICE ^E_WARNING); $web['connection'] = 'mssql'; $con = mssql_connect("203.143.82.98:1433","sa","z09184049210); //$mssql_server = "203.143.82.98"; //MSSQL server name or IP //$mssql_username = "sa"; //MSSQL username //$mssql_password = "z09184049210"; //MSSQL password $web['database'] = 'Rancp'; $web['database'] = 'RanGame1'; $web['database'] = … | |
How can i make a jquery timer that each 3 seconds triggers a php action? | |
How can i replace :), :-),O.o or B) in my a file, that is used to display chat content, by an image. Here is my code: <? session_start(); if(isset($_GET['logout'])){ $ip=$_SERVER['REMOTE_ADDR']; //Simple exit message $fp = fopen("log.html", 'a'); fwrite($fp, "<div class='msgln'><i>User ". $_SESSION['name'] ." has left the chat session.</i><br></div>"); fwrite($fp, "<!-- … | |
I have the following code. I wanted to determine if the value inputted in $cellno (from a textbox) are all digits (numbers), and if it's 11 numbers, and if its starting numbers are "09". One correct value example is 09345678910. It is all numbers, has 11 digits, and begins in … | |
Hello, I am clueless on how to separate the value of a HTML TextBox into separate characters before inserting into database. The user will key in certain form of code in the textbox. EG:JYX. The code needs to be separated and assigned to variable for each of the character before … |
The End.