very short code [ mysql_result to mysqli please help]
started learning php last week, at first didn't know anything about it so used mysql, now yesterday reading some article i saw that i should be using mysqli instead of mysql, so i changed all the code...
View ArticleUnable to locate parse error.
Ok I have a small issue. I know it's because of my lack of php knowledge and it's a small mistake but I can't seem to see it. I am getting this error in Coda 2.0 Parse error: parse error, expecting...
View Articleremove substring from end of string
I want to remove the last ' AND' from my string im using to build a mySQL query. I thought using rtrim was the way to go but either im wrong or im not using it correctly: foreach ($dupArray as $k =>...
View ArticleJS or PHP problem? Not sure
Hello everybody! I'm writing an application that, among other things, allows users to send messages to admin of the page. Then, admin access it trough their CMS. After they successfully send the...
View ArticleProblem with PHP/SQL Select where
Hi All, I'm fairly new to php and after spending many hours searching forums i thought this would be the best place to post! I have a table, pt_roomcount with four fields, index, room, category,...
View ArticleNeed help making this backward compatible until php upgrade
Can some help me make this code backward compatible? This code works with php 5.3 and above. I need it to work with 5.2.17. $columns = 'col1, col2, col3'; $values = '$value1, $value2, $value3';...
View ArticleQuery based on option in dropdown list
I want to see the content of a query on a webpage based on an option selected in a dropdown list (sort of filter function) I made following javascript and PHP script but doesn't receive the desired...
View ArticlePHP Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL...
So I am getting this error and I don't understand what I'm doing wrong. PHP Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in...
View ArticleTimezone error : Invalid date.timezone value 'Asia/Calcuttaextension', we...
Hello, This is my first post on the website. Sorry, I din't went to the introduction section straight up. I am getting the following error on the website. The website was working fine before upgrading...
View ArticleProblem storing data from this form fileds
I have been practicing mysql and then i have came accross a issu that i can't solve ... i have also asked in different forum and dont find any suitable ans ..... so here i am ... I am making a large...
View ArticleNeed Help In Fetching File Name Title - Image Gallery
Hello guys, First of all thank you for your support and I have learned many new things from this forum. Secondly, I am again facing an issue which I want to take help from you guys. I have a php...
View ArticlePHP Login system?
I'm trying to make a login system using two PHP scripts, a html and a text file. The html should link to the login.php which should get a name from the text file with all the usernames and passwords,...
View Articlemysql_num_rows() expects parameter 1 to be resource, boolean given in
The below is my code.... it works from webserver, not works in local host <?php include "connect.php"; if(isset($_POST["signup"])) { $un=$_POST["uname"]; $pw=$_POST["pwd"]; $fn=$_POST["fname"];...
View ArticleHandling DB Connection
I'm in the process of coding a PDO wrapper class, really as a learning project but want to get it right so I can expand it in the future. Basically, I've written the following constructor to connect...
View ArticleUnset variable/array which has been passed to function
Just a thought... Is it possible to unset a global variable/array from within a function? So basically I want to pass an array to a function to convert to a string then destroy the original array....
View Articleproduct page - help
Hi All, I don't know how to start better, but here goes. I'm a rookie when it comes to html/php codes(I've used dreamweaver), but this is my problem.. I've created a product page in...
View ArticleTrying to create an edit page using Quickform2
I've been trying to improve my php skills by reading and going through the examples (step by step in order) from the book "PHP Advanced and Object-Oriented Programming". I'll try to explain it the best...
View ArticleMySQL UNION help
I'm still working on my helpdesk report and am a long way down the line thanks to the help I've received in here. Now, imagine a chart with the list of helpdesk members going across, left to right....
View ArticlePlease help me with this riddle
Hello Can you help me? I have 2 pc's A en B. There is a program that I run. If I run a particular php script then on pc A it hangs, on B it does not. But when I do write statements to an out file I...
View ArticleCreate a Breadcrumbs Trail For a Website
I've been trying to make a breadcrumbs navigation for a simple website which uses GET variables to determine what content to display, but it's proving a little bit more tricky than I thought. I've...
View Article