38,018 Topics

Member Avatar for
Member Avatar for puvi

Hi, Its been couple of month i started learning php. I am using xampp, php version 5.3.1, notepad++ to edit. I wanted to use a debugger, so downloaded xdebug5.3vc6 32bit version and DBGp plugin, did the changes as mentioned [URL="http://amiworks.co.in/talk/debugging-php-using-xdebug-and-notepad-part-i/"]here[/URL]. Problem is php is not recognising xdebug. when i run …

Member Avatar for puvi
0
144
Member Avatar for itisnot_me

i know i should know this but for the life of me i forgot it. what i want to do is within my loop. I want a single variable that has multiple info in it that can be separated by a , ex: loop one { $store = "fieldone='$fieldone'"; } …

Member Avatar for itisnot_me
0
86
Member Avatar for NutanGadakh

[CODE] $_SESSION["srch"] = trim($_GET["search"]); $var = $_SESSION["srch"]; $searchinfo = array(); //////Home $viewQuery1=mysql_query("select * from home_content where hc like \"%$var%\" ") or die(mysql_error()); if(mysql_num_rows($viewQuery1) > 0) { while($Res1 = mysql_fetch_array($viewQuery1)) { $searchinfo[0] .= '<a href="home.php?pk='.$Res1['parent_key'].'">'. substr($Res1['hc'],0, 25).'</a>'; }//while $num = mysql_num_rows($viewQuery1); }//if //////END Home //////HIGHLIGHTS $viewQuery2=mysql_query("select * from highlights where hl_c …

Member Avatar for NutanGadakh
0
83
Member Avatar for BaSk

I have a search where I want to be able to search a string of words. The search is going to be looking in 2 different table joined by a left outer join. The tables are "quotes" and "categories". <?php $sql="SELECT q.id, q.username, q.quote, q.by, q.voteup, q.votedown, q.servtime, c.label FROM …

Member Avatar for BaSk
0
101
Member Avatar for muralibobby2015

hello... in my site i want to do search images from google and put a link to each image "upload this image". when i click this link automatically upload this image in to my site. i searched a lot after i found this script. but how to add link and …

Member Avatar for Jamesapoe
0
100
Member Avatar for zlloyd1

I have a problem that I cannot for the life of me find a solution to and since I have received assistance on this forum before I thought I would give it a try here again. I posted this question earlier but I did not have time to finish it …

Member Avatar for sudeepjd
0
162
Member Avatar for lit108

I am trying to display the number of rows I have in my database, but instead of the number being displayed on my page I just get the word 'array' My code is below [CODE] $productCountSql = "SELECT COUNT(*) FROM products WHERE `user_id` = '" . $_SESSION['user_id'] . "'"; $productCountResult …

Member Avatar for lit108
0
92
Member Avatar for shoucate

I bought the book "PHP 5/mySQL Programming for the Absolute Beginner." So far I have been pleased with the book, but am stuck on a lesson and can't get past it, because the code given is either not correct(I did find an error in another lesson) or my webserver won't …

Member Avatar for shoucate
0
103
Member Avatar for lit108

I have an update statement which should update a product using information the user has submitted from a form The error being that nothing gets updated, the sql code does nothing, and changes nothing in the database Can anyone see an error in the code? [CODE] $user_id = ($_SESSION['user_id']); $product_id …

Member Avatar for lit108
0
97
Member Avatar for feoperro

Hi, Say for example I have a page with 100 includes. How would I reload just one of them? Say I ran an ajax script that did certain tasks on the server side, but I didn't want to display the information by setting it in the ajax script - Instead …

Member Avatar for diafol
0
4K
Member Avatar for GrahamLawton

I'm sure this is stupidly simple, but I havent been able to figure it out with lots of Google searching and pouring through tutorials. I'm building a simple computer trade-in value calculator PHP app. Using a form to select the type of computer and the various specs, I need it …

Member Avatar for diafol
0
152
Member Avatar for tcollins412

I am trying to write a script that you input a phone number, and it outputs the address and name the number is listed under. How do i do this? Please help me. I will be very grateful.

Member Avatar for Kieran Y5
0
168
Member Avatar for methuselah90

good afternoon all, i am currently writing a system in PHP that requires interface with a USB thermal receipt printer for a friend upon form submission. currently i have read about interfacing with devices containing a parallel port but there has not been much detail on how i can use …

Member Avatar for cereal
0
81
Member Avatar for mbarandao

Hello: I have the following challenge I need assistance with. I have a mysql table [CODE] -- phpMyAdmin SQL Dump -- version 3.3.3 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Dec 01, 2010 at 01:22 PM -- Server version: 5.1.48 -- PHP Version: 5.2.13 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET …

Member Avatar for mbarandao
0
138
Member Avatar for whiteyoh

Hi All, Im trying to count the number of instances of a value in an array and put that value into a variable but im a little stuck. My example below prints to screen how many of each, but i want it broken down to a specific variable of that …

Member Avatar for mschroeder
0
100
Member Avatar for shenbagam

[CODE]<?php $con = mysql_connect("localhost","root","" ); mysql_select_db("test",$con); $sql="select image from image"; $res=mysql_query($sql) or die(mysql_error()); $i=1; while($i < mysql_num_rows($res)) { $image_id[$i] = mysql_result($res, $i); echo "<img src=\"".$image_id[$i]."\">"; $i++; } ?> [/CODE] I'm using this code to display the image from mysql but images are shown like this M¢—‡¤6n幆J1³ŒªÌF·æFLùp1 `‘ã:ÃDVNÒ–¢QSgWñg€?´‘íx3²ûEùÝ ô.l%·ËìÈŒÿAzH­'óÀËË€XƒÍ«L²GçÚ›9ást¸°äŒëŸ]˜¦21ŒÖ|¸E^®ÏJOXX&æàߣéü6bêæ¬Öò7aúQ¡·÷9;Ó-ˆ )ôdx¹cüÖlÒ'j( q1ÌnéW4Ó÷dÇå©uF …

Member Avatar for hielo
0
112
Member Avatar for ibeginphp

Hi Guys, I am trying to call the Javascript function declared at the top in my php area. However its not working. Can anyone tell me the reason for it. Everything else is working except for this part. Please help me. [code] <!doctype HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> …

Member Avatar for nonshatter
0
375
Member Avatar for Shuel

Hi I cant understand why I get the following error: "Notice: Undefined index: note in C:\wamp\www\addressbook\guesbook.php on line 20" The code I have is below: [CODE]<html><head><title>My Guestbook</title></head> <body> <h1>Welcome to my Guestbook</h1> <h2>Please write me a little note below</h2> <?php $me = $_SERVER['PHP_SELF']; ?> <form action="<?php echo $me; ?>" method="POST"> …

Member Avatar for Shuel
0
1K
Member Avatar for mani2604

Hi everyone... Well i do have a mysql query in one php page(php_1) & I want to submit the variables to the query in different php page(php_2) via form action but how am I supposed to do it without redirecting to php_1.. All I need is to post the data …

Member Avatar for diafol
0
802
Member Avatar for veledrom

Hi guys, I need your help with PHP+AJAX example. This is the scenario: 1. I enter my name into textbox and hit submit button in page index.php. 2. Data is POSTed to save.php to insert my name into mysql database. 3. With help of mysql_insert_id() function, save.php sends ID back …

Member Avatar for diafol
0
114
Member Avatar for veledrom

Hi, I need to find a correct approach to do database process. Please have a lot at my code below, I am sure it is not good practise. I'll be happy if you can help me avoiding many connections to mysql db once there is a connection already established. Also, …

0
66
Member Avatar for shenbagam

Friends, I'm very new to php . How to make slide show in web page by using php. Now only i came to know to storing and retrieval of images.. to make slide show what we have to use my friend asked me to use photoshop which is best.... anybody …

Member Avatar for shenbagam
0
65
Member Avatar for NutanGadakh

I'm creating search for my website.How should i give links of respective pages to the results that i m getting. Pls Help.

Member Avatar for NutanGadakh
0
137
Member Avatar for dylank

Hey guys, Little problem. I have the feed URL for a Google Docs spreadsheet. I use CURL to perform the request and get the data from the feed, but the only problem is is that I cannot echo that data out to the browser. Here is my code: [CODE]<?php //Set …

Member Avatar for dylank
0
84
Member Avatar for tecktalk

I am a student and I wana learn PHP.. via Internet.. can anyone tell me please how to do it..Where i can buy the buks and where i can start my online stdies... please help me out.. as i m in search of a Good PHP training..:)

Member Avatar for terabyte
0
128
Member Avatar for atef201080

hi all please how to make a script like that [url]http://mmt33.co.cc/mig/admin.php[/url] that script connecting to gateway.mig33.com and showing online mig33 admins,thanks

0
51
Member Avatar for raevin

I've been searching Google and here, and haven't found anything that'd work for me. I'm trying to restrict access to my scripts so that they will only be accessible via the main page. On the initial page load, everything loads fine. But, if I click on a link, the define() …

Member Avatar for raevin
0
184
Member Avatar for jigglypuff13

Hi There, I am a bit of a PHP newb :P I have developed a multi-page form which works fine at the moment - each stage is on another page (I use the session to retain the data). However I know that users don't always use these forms the way …

Member Avatar for somedude3488
0
284
Member Avatar for bwallace

Our image upload form always returns the error message, "Invalid file. Please click the 'Back' button on your browser and try again." Here are the basics. ==HTML FORM== [CODE=HTML] <form enctype=="multipart/form-data" action="phpscript.php" method="post"> <input type="file" name="uploadedfile[]"> <input type="file" name="uploadedfile[]"> <input type="file" name="uploadedfile[]"> <input type="submit" value="Submit" /> </form> [/CODE] ==PHP SCRIPT== …

Member Avatar for somedude3488
0
156
Member Avatar for the_mia_team

[url]http://getagripsite.com/level_one.html[/url] that is a link to my site, an application I am working on. If you visit that site you will see an option 1, option 2, and option 3, as well as a bonus option IF the checkbox is selected it is worth points, and the bonus can ONLY …

0
75

The End.