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 ArticlePHP 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 ArticleImprove 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 ArticleHow 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 ArticleSQL 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[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 ArticleCan I define a session variable before session_start()?
Do I have to write session_start() before I define a new session variable?
View ArticleHelp 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 ArticleLoad () 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 ArticleCreating 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 ArticleSQL 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 ArticleMySQL 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 ArticleIncluding 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 ArticleGenerate 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 Articlemysql_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 ArticleMerge 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 Articlephp 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 ArticleAvoid 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 Articlenewbie 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 Articleblank 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