373 Posted Topics
Re: maybe you looking for this - [CODE] if(isset($_POST['submit_btn_name_in_your_form']) && $_POST['submit_btn_name_in_your_form']!='') { //now if the Quantity entered is 0 it will be entered in the db as '0' $Quantity = $_POST['txtField_Quantity']; //same for others too, if you want to escape blank (like setting $count ='' in the db)values from this, this … | |
Re: [QUOTE=catfleamassacre;1048762]I am fairly new to image uploaders (worked in animation for a long time). I have an image upload form that works fine. The image uploads and redirects to another PHP page (imageupload_file.php) that confirms the image uploaded and gives you the name of the image and size on the … | |
Re: [QUOTE=veledrom;1050118]Hi, Code below returns this. [code] Array ( [0] => 3 [id] => 3 [1] => John [name] => John [2] => Goog [surname] => Goog ) [/code] Everything repeated. Why? Also, I need to serialize. I need it for some other reason. [code] $sql="SELECT * FROM friends WHERE id='3'"; … | |
Re: [QUOTE=iraberyl;1049744]hi, got a new prob, how can i create a php page that automatically refreshes each time i access the page.[/QUOTE] explain in what way, you expect the PHP to work for you. Otherwise every page whether PHP or HTML refreshes itself whenever you will refer/call to it | |
Re: [QUOTE=shishtawitch;1050009]hi, i am trying to upload an image with comment......!! mycode is like below...... if($_POST){ getting posted variables for comment mysql_query(adding into database); if(image is posted){now getting image variables mysql_query(inserting into database); } } if works fine for me but problem is that i have two different tables one for … | |
Re: [QUOTE=dmkc;1049949]Hi everyone, I've been a reader for a long time, now I've joined up, as I'm fairly stumped on this one!! I'm currently teaching myself mysql and php at work, and have a problem. I am using php to produce a listing of restaurants on a page, and I would … | |
Re: @leviathan185: You can definitely use the strings as the cases inside switch() @Mauzam : need brak after the case sunday and the syntax after the case is wrong, need to use the 'COLONS (i.e. :)' instead of ';' your improved switch() below - [CODE]switch($endag) { // start switch case "Monday": … | |
Re: [QUOTE=futhonguy;1049776]I would like to make some query using the SELECT function. However i wasnt able to get the results i want. My code is as follow: [CODE] $sql = "SELECT * FROM device WHERE ((device_num like '%$val_d%') OR (dib like '%$val_dp%')) ";[/CODE] can i write it in this way? pls … | |
Re: [QUOTE=mrjoli021;1049321]Why doesnt this code work. I keep getting false even when i type in the correct username and password [code] $user_name = mysql_query("SELECT * FROM users WHERE username = '".$Entered_UserName ."' AND password = '".md5($Entered_PassWord) . "'"); $user_name_password = mysql_fetch_assoc($user_name); if($user_name_password === false) { echo 'false'; } else echo 'true'; … | |
Re: [QUOTE=applebiz89;1049003]I have a webform for users of the site to insert information about theirself and then an image. However I don't want to save the image into the database as it will slow everything down...is there a way to save the image to my hardrive then create a link in … | |
Re: [QUOTE=iraberyl;1048601]Hi, actually i've posted from the wrong thread and i apologize for that. anyway, let me post my problem and it goes like this. we've successfully created drop down menus that is connected to our database. we have 5 fields to display, each field contains different data [(ex. first field … | |
Re: [QUOTE=sam023;1048727]i m searching for it from last two hrs. but didnt find anything useful.. i hope some reply to this topic..!!! i just need a php script to upload excelsheet data into mysql table..!! thanks[/QUOTE] check this and you can find more threads for this excel sheet parsing Topic [url]http://sourceforge.net/projects/phpexcelreader/[/url] | |
Re: [QUOTE=elanorejoseph;1048412][CODE]hi how can i make a drop down menu usibg java script.... please help its urgent[/CODE][/QUOTE] use html to code the drop down menu , use ajax based fill up of elements in the drop down from some other ajax page in order not to refresh the page. | |
Re: [QUOTE=otherdummy;1048352]My friend is writing a simple forum, In this forum there is 1 MySQL database with 4 tables(forumsections, members, posts, replies) The question: He wants to notify by mail those members who have posted new posts, when anybody replies to their post. (like in this forum). Now he has a … | |
Re: yes, the switch is definitely something innovative, any programming language should think of offering!But at the moment no support for such switch statements yet, which can evaluate the expression. one more thing, what if the session variable "user_id" wont be set. $level will be nothing and will be passed as … | |
Re: [QUOTE=vishalonne;1045242]I am developing a small web site. I have a login Page (login_form.php) from where user has to select there user type from dropdown box values are "Administrator", "Store Keeper", "User". When user select "User" option from list in onchange event I am opening one popup window (depart.php) from which … | |
Re: [QUOTE=OmniX;1045640]I was stuffing around and I was wondering if it was at all possible to make a function or method, dynamic at all? In what context? well I would like not to have the specify the elements required by the function so at any given day it can be more … | |
Re: mysql_real_escape_string() | |
Re: Its working fine for me, no reload at all | |
Re: [QUOTE=elanorejoseph;1046133][CODE]If the variable $a is equal to 5 and variable $b is equal to character a, what’s the value of $$b? the answer to this question is give as 100 can any one please tell me how?[/CODE][/QUOTE] [CODE] $a = 5; $b = 'a'; echo $a;//will ehco 5 echo $b;//will … | |
Re: [QUOTE=elanorejoseph;1044694][CODE]hi can any one please tell me how categorisation can be done [/CODE][/QUOTE] what categorization you want to achieve, you need to explain it more | |
Re: [QUOTE=andrewsCWD;1045506]I figured out while rechecking my post. I needed to restate: [CODE] $Row = mysqli_fetch_row($QueryResult); [/CODE] inside the do, that's what was hanging it up.[/QUOTE] [CODE]<? // store email and password in variables // query the frequent_flyers database to compare the entered email address // select all records to make … | |
Re: you need to call it onFocus of the each input element for the cost. For example, user inserts quantity for first product then tabs to the next element or puts cursor inside the next element i.e. cost's box, the function should get executed with the element id passed to it … | |
Re: [QUOTE=web3;1045106]I made star voting script and i was wondering how to display average result?[/QUOTE] The matter is not clear with just this, until the code is seen. at least your queries first | |
Re: You did not post the code where this syntax error is actually, post the functions.php. Do you have more than one php file with the same name as functions.php in different directories | |
Re: Do you have the function in your class- [CODE]function AttachAll() { // Return text of body $mime = array(); // Add all attachments for($i = 0; $i < count($this->attachment); $i++) { // Check for string attachment $bString = $this->attachment[$i][5]; if ($bString) $string = $this->attachment[$i][0]; else $path = $this->attachment[$i][0]; $filename = … | |
Re: Its working perfectly fine , you can impose the limit like this - [CODE] var numRows = tbody.rows.length; if(numRows >12)return false; [/CODE] | |
| |
Re: as far as i know, not directly but you can do the same using C/C++. While it is possible to compile PHP into DLLs (Phalanger can do that), there is no guarantee that those DLLs will be usable by PHP. In fact, PHP has a rather strict set of requirements … | |
Re: [QUOTE=shishtawitch;1045040]hi, my problem is, that i want to access my root folder as subdomain using php or htaccess..........!! i.e if i have a folder like => [url]http://www.mydomain.com/folder[/url] should be automatically changed to => [url]http://folder.mydomain.com[/url] i have cpanel hosting accounting not reseller.........!![/QUOTE] To add more subdomains, just create new subdirectories in … | |
Re: [QUOTE=namratakakkar84;1043635]Hi I have made a program in which we have to read cookies through javascript but I am facing a problem in it. And I am unable to understand where the problem is? Please help me understand the same. [CODE] <html> <head> <title>read cookies</title> <script language="javascript"> function gettime(){ if(document.cookie) { … | |
Re: [QUOTE=phouse512;1042240]Table Inventory: user_id | weapon_id | armor_id | etc_items -------- -+---------------+------------+------------ ............ | ................. | .............. | this is the important part How would you store multiple things or items in that spot for just one user?[/QUOTE] No need to do it that way, you can save all the etc_items … | |
Re: Its working in the way it supposed to be. The function addButton() is called onmouse hover of the anchor tag and everything i.e. first image and the next onwards all will be inside the achor tag only.So its very normal if the function is called on the hover of anchor … | |
Re: [QUOTE=dpatz;1044258]Hi, I am reading in a bunch of files to upload but they are in an array: [CODE]<input id="tab1file0" class="tab1Files files" type="file" name="tab1file[]" /> <input id="tab1file1" class="tab1Files files" type="file" name="tab1file[]" />[/CODE] To upload the files I call a function uploadFile() which looks like this: [CODE]function uploadFile($thefile) { $base_path = "files/"; … | |
Re: [QUOTE=anatta;1044599]Hi guys, I am trying to add an instant messaging system to my website so that logged in member can chat one-on-one with other member on his/her contact list. I am aware that there are many of such free scripts that I can use but I would rather learn to … | |
Re: [QUOTE=InsaneVr6;1043390]I am having trouble getting PHP to run on Windows 7 under Apache. I know I installed everything properly because I have them running on 3 different machines (one with XP, one with Vista), but for some reason when I use my phpinfo(); script it shows up as plain text … | |
Re: [QUOTE=JackSkylar;1043451]I keep getting this message Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/content/j/a/c/jackattacksite/html/register.php on line 80 Here's the code: [CODE=php] // Connect to database include_once "scripts/connect_to_mysql.php"; $emailCHecker = mysql_real_escape_string($email1); $usernameChecker = mysql_real_escape_string($username); $emailCHecker = eregi_replace("`", "", $emailCHecker); $usernameChecker = eregi_replace("`", " ", $usernameChecker); // Database … | |
Re: [CODE]select code_qty *10 from ITT1 where code= (select father from ITT1 where code= (select father from ITT1 where code = (select father from ITT1 where code = 'a') ) ) [/CODE] | |
Re: [QUOTE=ayesha789;1042556]Dear All, I am developing a Lease Management System and I have Stored LEase agreements in Folder Named LAPO I used ID for search. and in LAPO Folder I have created folders name like 9624 inside 9624, I have stored LA.pdf There are 2300 folders in LAPO and 95% of … | |
Re: [QUOTE=sfsrocky;1036306][icode] "My wamp server got damaged recently and i had no backup for my databases. I had reinstalled the wamp server and replaced the bin/mysql/data folder to the new one but I only get the database and not the tables inside it. I need help!!!!!!!! "; [/icode][/QUOTE] ' did you … | |
Re: do you have a database created for it? If not first create the database and check if you can connect to the mysql using [CODE]mysql_connect($server_name,$user,$password) or die(mysql_error());[/CODE] | |
Re: using template makes the development makes the development faster, but we loos the freedom to develop the code in our very desired manner. In short the customization is a big hurdle itself..!! | |
Re: try this and try to modify accordingly - [CODE] <? //content is the array of titles which comes from the content.php page or the entire code can be put in the content.php $content = array('title1 - This is the Homepage','title2 -Find new friends','title3 - Get your visa cleared now','title4 - … | |
Re: if you want to track the pages user is visiting, update the usermaster table with one more field named 'location' each time the script on that particular page starts. This update will there be on each of your php page, so you can just create the common include file instead. | |
Re: [QUOTE=slr;1040961]Hi If anyone knows some opensource api or tutorials.. [url]http://buysellads.com/buy/detail/108[/url] Look on the right- it says "Public stats" how do you display that information for a domain - how do buysellads do that domain api?[/QUOTE] These are external plugins you need to embed in your code to show those counts. … | |
Re: echo your final query and post it here. Please use code tags to post the code | |
Re: If you forgot the password, there might be some link with the same title, click on it, maybe you will get the mail with your password or else they will ask you to reset the password. | |
Re: First of what you gave got nothing to do with PHP, its a HTML select element. and what do you mean by declare. | |
Re: browse around you will get thousand of free website design templates | |
Re: [QUOTE=Will Gresham;1038174]Why not use the RAND function of MySQL? [code] $query = "SELECT * FROM tbl_admin WHERE id=5 ORDER BY RAND(); [/code] Also, if you only want one image at a time, you should add [icode]LIMIT 1[/icode] to the end of the query.[/QUOTE] Ordering by rand() won't help here, in … |
The End.