Handling my connection variable for login script use
Hi all, Currently I am using $con=mysqli_connect("x","x","x","x"); On my login page to satisfy the the connection variable for mysqli_real_escape_string($con, $x) This works OK. However I...
View ArticleWrite value from function into array
Hi, I have problem with recursive function. I want to store value form that function into array because i need to reverse result of function. Here is function function display_children($category_id,...
View ArticleApplication - Multiple Developers
My friend and I are developing an application. The problem is that we're not sure how we can both view the code that we're working on. We want to be able to view the code upon saving so that we can...
View ArticleHow to Write title tags for a website?
Hi all I am newbie to webdesign. I do wanna know what are the possible ways to write a title tag coding for a website (Dynamic and static)? Especially for Dyanmic sites! I hope I will find the...
View Articlemulti_query with MySQL COUNT(*)
Having a tough time getting multiple select count statements to return a result. Tried a few different way, but just looking to tally individual table rows. Any thoughts? $res = array(); //output...
View ArticlePHP GD Text Generation
In the following code, I'm trying to generate some text to show on top of the background. With what I've got, the image doesn't even load, it shows the not found icon, but when I remove the line...
View Articleechoing each column from table twice problem
Hi. So I'm trying to echo out all the columns from the table. I'm connecting to SQL Server by the way. The number of columns in the table will vary so I want to loop and echo all the columns in the...
View Articlephp says variable has value A, uses value B
I use a css sheet that's actually .php so I can make cascading changes easily (style.php) e.g. a {color: <?php echo $AccentColor1 ?>;} The colours are set in a separate file with an include...
View ArticleError connecting to MYSQL server
Warning: mysqli_connect() [function.mysqli-connect]: (28000/1045): Access denied for user 'root'@'localhost' (using password: YES) in /Applications/XAMPP/xamppfiles/htdocs/HeadfirstPHP/report.php on...
View ArticleHmmm Why isn't this allowed?
What's happing here is I can't seem to use one these two lines instead of both at the same time: $this->rName = $row['name']; $this->rDescription = $row['description']; Here is the class that...
View Articlecode not working in v 5.4.16 works in v 5.3.8
The following code works in v 5.3.8 but not in v 5.4.16. I get the error: Parse error: syntax error, unexpected end of file in C:\xampp\htdocs\autoroller\php\delete_customer.php on line 57 This is the...
View ArticleFew Quick Inquiries
Hello, I working on my code to populate a text field from a column of data in a mysql database and i was successful. -- I don't know if this is the best code to do so. Check it out!! <!DOCTYPE...
View ArticlePHP array
Hello everyone.I am learning arrays in PHP.I tried to take 6 text inputs and store it ina a array and then display when we click submit button.But I am not getting output.Below is my code.Please help...
View ArticleProbably a broken array
I'm trying to build a form for a TCG i run where it allow people to vote for decks they want to see released. It would show in the database by adding 1 for yes and nothing for no. I have it coded but I...
View ArticleVery new and trying to take on PHP calendars
Hello all, I just have to start by saying i am very much new to PHP. Iv only done basic things but would really like to learn more. I am also new to forums so please try see past my "not so bright"...
View ArticleOne URL parameter without a name
My site currently uses one parameter in the URL like this: http://www.mydomain.com/folder/?paramname=AB32123 I would like to remove the parameter name, so the URL is:...
View ArticlePHP/MySQL INSERT INTO Multiple Tables from Basic Form
hi guys,i have simple form submission with title, description and file upload, this file having size,type,filename will insert to table3, ALL same time after ADD.am trying to make a simple PHP form...
View Articleis_dir() says variable is undefined?
Hi, So, the following: require 'panel.php'; $guy = $_GET['user']; $path = "users/$guy"; $sql = mysql_query("SELECT * FROM users WHERE id='$guy'"); $row = mysql_fetch_array($sql); $folders =...
View ArticleExecute PHP without leaving page (Contact form)
Heya guys, i've been struggling with this for a while now, as I'm still a beginner in PHP and also Javascript / jQuery. Could anyone please help me out, would be much appreciated. I have made an...
View Articletrying to retrieve a dropdown value and id
Hi Professionals I am stuck here trying to retrieve some values and update the DB I have a dynamic drop down box that is created within my loop on the first page like so <select...
View Article