Session_destry() not destroying the session
Hi I hve a page with sessions. They work and I get it doing what is suposed to. However, I heve a link to destroy the session (logout) mas the user stays logedin. The script I cal from the logout link...
View ArticleAppend XML file with php
I have a php script that creates an XML file with data from a HTML form. It works great and the XML file is created and the form writes data to it. I am having a hard time appending data to the XML...
View ArticleBest way to approach missing image in database
Hey guys, so i have a website that has info outputted from my database. the data is users that are signed up right now lets say i have 10000 users each linked with their own image to their...
View Articlesearch update delete record in mysql table using a form
hello all, i have a form named del_prod.php containing a search delete and update button. i want to know how i can perform my search by inserting the product id in the product id field and related...
View ArticleAlternating row colors
Hi, How do I alternate the row colors in this code ? <?php include'DB-Connect101'; $id=$_POST['id']; $jobs_sql = "SELECT...
View ArticlePHP simple mail query
Hi guys a simple php mail question, I am using the following mail routine to send a email from a script, its all working just fineexcept the <a href="">Click Here to View</a> is showing the...
View Articleclicking on ok button that appears when submitting form should return the add...
i have a php page where i add products to my database table tbl_product on clicking on button add product a javascript pop up message is displayed with a message and an ok button...which code can be...
View ArticleBuilding integrated forums to my website
Well, the forums are the first thing I'm doing but I'm having an error with my SQL. SELECT * FROM categories_tbl LEFT JOIN forums_tbl ON (forums_tbl.parent_id = categories_tbl.category_id) WHERE...
View Articlehow to add Cronjobs in php scripts?
plz explain how to add Cronjobs in php scripts? and is their any example or tutorial about Cronjobs in php scripts?
View Articlewhat is ip address @ php curl script ? can i chang with set option?
what is ip address @ php curl script ? can i chang with set option?
View ArticleHow to check for unique phone numbers in mysql?
Hello, I am new to PHP, I only started to read books and watch video online. I do apologies if my code is incorrect and added in a stupid way but I did my maximum with whatever I have learned till...
View Articlea littile provlem........plz help
$ac=$_POST['to'] i want to add 0 before post data ..........plzzzzzzz tell me how to deal ?
View ArticlePHP application sending out many emails
I have been working on an application where I need to send a zip file to my registered users. I'm not worried about speed to get the emails out, I just need to be sure I can send out the files to...
View ArticleError with php and MySQL
Hello, i need help!!! <?php $query = mysql_query("SELECT 'id', 'name', 'url' FROM videos"); while($run = mysql_fetch_array($query)){ $video_id = $run['id']; $video_name = $run['name'];...
View ArticleHow can I optimize this PHP script to load the page faster? It's too slow
So I have this PHP script below that requests data from the Twitter API and then displays it on the page according to the information that I have in my local database because I stored twitter...
View Articlefield submission error
Hi all - I'm really stuck and just need a second set of eyes to please take a look. My description field is being submitted into my entry field - I have gone over and over but can't see the error....
View ArticleBasic Question - How do I insert into two tables, one after the other?
Sorry guys, I'm relatively new at PHP, and as I've never done this before, I need to ask. How do I correctly format the syntax below in order to insert to 2 separate tables, one after the other?...
View Articlefgetcsv escaping commas in title
The following code is supposed to take a CSV file and insert to the database. First, I prepare the CSV file by replacing " with \" and , with \, then run a PHP function to prepare for insertion. It's...
View Article