Quantcast
Channel: PHP Freaks: PHP Help
Browsing all 13200 articles
Browse latest View live

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 Article


Append 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 Article


Best 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 Article

search 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 Article

Alternating row colors

Hi, How do I alternate the row colors in this code ?         <?php include'DB-Connect101';    $id=$_POST['id'];   $jobs_sql = "SELECT...

View Article


PHP 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 Article

clicking 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 Article

read .so file in php

How to read .so file in php can any one help me   Thanks

View Article


How do I make a hashed password?

I'm trying to donut in my code.

View Article


Building 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 Article

how 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 Article

what 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 Article

How 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 Article


a littile provlem........plz help

$ac=$_POST['to'] i want to add    0   before   post data ..........plzzzzzzz tell me how to deal ?

View Article

PHP 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 Article


Error 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 Article

How 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 Article


Image may be NSFW.
Clik here to view.

field 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 Article

Basic 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 Article

fgetcsv 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
Browsing all 13200 articles
Browse latest View live