store result in variable
can someone please point out where i m going wrong. this code is working fine, but i need the results in a variable $result = mysql_query("SELECT * FROM `gifts` WHERE `id` =$id "); while($row =...
View ArticlePhp Guestbook simple error( i think)
My mission is to create a database-less guestbook I have an infernal error loop could someone help me spot the blunder the html runs but when you submit.. it goes crazy <TABLE cellSpacing=3...
View ArticleUndefined Autoloaded Class Properties
Hi coders, i have 2 files where one file is auto loaded into another one file. now i get lost since before i can do this like below but i dont know why i get this error now Undefined variable:...
View Articlefile_get_contents("space.txt");
file_get_contents("space.txt"); have a text file contant VR eP gT .text file have 2space between words and i want without spacce, using above code to get data frm file.plz help to get...
View Articlehow to slove this category and subcategory code in php mysql
Hi friends i used this php for category and subcategory but this code is not proper work . So Friends i need your help Please tell my error or suggest me another script who has proper work . its...
View ArticleIs there any advance static code analyzer for PHP?
I am looking for high level static code analyzer that can check things like unused variable assignments, style warnings, array assignment without initialization etc.
View Articlemysql_fetch_array() expects parameter 1 to be resource, boolean given
i'm sorry im newbie of php... i found this... http://forums.phpfreaks.com/topic/181256-solved-warning-mysql-fetch-array-expects-parameter-1-to-be-resource/ but in my case i didn't use $result in my...
View ArticleEmbeded Web Page Leaves My Site When Links Are Clicked
Good Morning Forum, I write my own PHP when I need specific tasks done. It has been quite a while and since I have had the need to write anything so I am rusty as can be. I am needing some...
View ArticleWhy Echo does not work on php variable the second and third time?
The variable $q_words[$loop_count-1] is shown in the top besides Did you mean? but it fails to come up inside of the hyperlink. Any ideas to why? <?php if ($_POST['query']) { $query =...
View ArticlePHP link rotating script
I have this PHP link rotating script, it works pretty fine...when I run the script it redirect to:link1.comlink2.comlink3.com.... and so onbut when I change the web browser or someone else runs it, it...
View ArticleSimple serialized (?) string not being unserialized
So basically, this string is in the database and I can't find what saved it so I'm not sure what method they used to create the string... But I need to break it into an array. I tried originally...
View ArticleVariable not being assigned
This has been driving me crazy. When I put: for($i = 0; $i < sizeOf($clones); $i++) { $clones[$i]->attackGroup = $_POST['type'][$i]; } $clones[2]->attackGroup does not get assigned. But when I...
View ArticleDisplaying content relating to the offer clicked
I have a website which can be found here (www.xclo.mobi/xclo2). At the very bottom there are 3 fields. FREE,FREE AND GIFTS. When you click on one of them it displays all 3 offers listed on my database....
View ArticleMysqli Prepared statement and $mysqli->affected_rows > 0
Hi All I am a bit confused on how to add $mysqli->affected_rows > 0 to a Mysqli Prepared statement, any help would be more than appreciated. <?php $mysqli = new mysqli('localhost',...
View ArticleHandling Photos
Hi All, Long time no speak. I haven't been on here in a while because I landed a real job in NYC doing custom Facebook campaign work. Not much PHP there, but I do still get to code. Lots of jQuery....
View ArticleIntegrate an "include" into html that is already generated by php
Am Beginner .. and i tried the whole day to find the mistake on this: while($h_rec = mysqli_fetch_assoc($abfrage)){ echo '<tr class="zeile">';...
View ArticleNotice: Undefined offset:
So, I'm playing around with pagination. The script I wrote determines how many images are in a folder, throws them into an array and then splits them up so that only 9 are displayed per page. It all...
View ArticleHelp understanding how to get data from mysql with php
I have some code that returns a single column in a table, but I need to pull all columns........Can some one point me in the right direction to do this? Here is the code I am using to pull the single...
View ArticleHelp with PHP exercise
Hello, I need help with the three exercises at the bottom of the page: In the previous sections, you've been following along and building up a HTML form. You've learned how to get the text from a...
View ArticleSyntax error, unexpected T_STRING
I found a tutorial on youtube, but for some reason I get this error when I submit its on line 14 $txt="<div id="mag"> <font color="red"> Messaggio inviato da:...
View Article