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

PHP automatically generate a slash when adding record to database

Can anyone tell me how to prevent a slash from auto-generated when inserting a string that has a apostophe.  Example can't become can\'t.  Thanks,

View Article


Image may be NSFW.
Clik here to view.

PHP CODE

Hello guys,    I'm working on a website, and I've done 2 forms,  I need help to send the information from the forms to the email.  Can someone help me?    Thank you  

View Article


Improve Database Speed In Simple Program?

I've made a simple jQuery program which retrieves information from a database based on the value of a textbox. The event is triggered on keyup:   $('#textbox').on('keyup', function(){ var category =...

View Article

How to copy data to array of arrays

I have this array that I will use for the SVGGraph chart class I can easily get it working by setting in data manually in the code like this: (This is an example from the SVGGraph web) $values = array(...

View Article

SQL PHP Syntax

Hi, I'm just wondering but if my webhost has SQL version 5.1, what are the syntax of that for PHP login & register forms? So like    $q = "INSERT INTO `Table1` (`username`,`password`,`email`) "...

View Article


Image may be NSFW.
Clik here to view.

[Noob] Image uploading doesn't works everytime

Hey   I found a script that works for the upload and resize of images.   What's weird is that the upload/resize works for some JPG's (the screen impression) but not for some others (photoshop ones or...

View Article

Can I define a session variable before session_start()?

Do I have to write session_start() before I define a new session variable? 

View Article

Help with arrays and sessions

I've been working on the delete item from cart functionality all day. Still cannot figure this out.   When I add 2+ items to my cart, and try to delete any item but the last item added, the script...

View Article


Load () page error in PHP - PLEASE HELP

I am having trouble getting a file in php to load the following file.  The error I get is:   Load Page () /home/bestdoo/public_html/go/addons/signup/template/signup_edit_listings.html not found   but...

View Article


Creating loop to send sms more than one recipient

Hello! I wanna create a form that can send sms to multiple recipient, i've created a form that uses javascript to add or remove textbox dynamically, this code successfully send sms when i fill one...

View Article

Image may be NSFW.
Clik here to view.

SQL query help

I've written exactly one PHP program thus far - search against a text file using "preg_match".  It looked something like this (and it worked):   <pre> <?php $string = $_POST['keywords'];...

View Article

MySQL Rows & Login form?

Hi, I'm trying to make a login form for my website, but I can't seem to get my head around this problem, basically it keeps returning this row error and I'm not too sure why? Really need some help on...

View Article

Including a CSS file through PHP

I'm looking for advice on how to include multiple CSS files into my PHP using only one <link> in the head of the document.   I've got it working for javascript, however CSS doesn't seem to want...

View Article


Generate thumbnail images

I want to code one PHP script which allows me to generate thumbs of given images with specified dimensions and names as per Next-Gen Gallery Plugin of Wordpress.   I have website for cover pages:...

View Article

mysql_fetch_array() error

hi guys,  i can't resolve this error "The requested URL /<br /><b>Warning</b>: mysql_fetch_array() expects parameter 1 to be resource, boolean given in...

View Article


Merge If Empty Code

Hi,I am trying to merge the empty code for 'skill3link' and 'skill3' but whatever I try doesn't seem to work. The code will only display the last empty row. In this case 'skill3'.Can anyone advise an...

View Article

php guessing game help

hello guys i have some guessing game code that works fine i just need a few things adding to it that i dont know how to do if some body could please show me how. its just a simple number game where the...

View Article


Avoid sql injection but still have break lines

Hello, i use mysql_real_escape_string() to avoid sql injections but it escapes and line breaks \n. What should i do to keep the line breaks from the form and be protected by injections. Thank you

View Article

newbie here, How to pass SOAP request to server

Hello fellow programmers, I'm having problem with passing soap request this xml schema is the SOAP request I must  pass to the server : http://pastebin.com/1PjXzVLm I use this code...

View Article

blank page maybe bad configuration php

i'm configuring an auction website... but it show a blank page it is a subdomain so i'm not really convinced that i configured it correctly   $config = array(         'Database' => array(...

View Article
Browsing all 13200 articles
Browse latest View live