Looking for a quick critique
Wondering if the below can be made any more efficient and just for those wondering I like writing my own functions I don't like using frameworks. mb_internal_encoding("UTF-8");...
View ArticlePHP Function
Hi Hoping someone can help so frustrated with this as I cant figure it out. This is what has to happen. Create a function of your choice. The function must accept 5 arguments. Create a form...
View ArticleWeird problem generating graph and text
Hello!First thing to say, the code is not written by me, it's a complex statistics module for a game server (Counter Strike Source). But, of course, if necessary, I can provide any code/files needed. I...
View ArticleIs this PHP? Not really sure how to do this?
I have several folders of photos neatly organized. All photos have different names but end in .jpg. Folder could be called 03, 04, tom, jen, empire, etc if user clicks 03 link all photos would be...
View Articlemysqli_query not working (insertion into database)
hello, I have just started working with php and encountered a problem in handling the MySQL database through my php script. the code is as follows: _______________________________________...
View Articleplease help resiing image
hi, this is my script to upload and image, change the file extension to lowercase and save the path to my db....to which I need to add a function to resize th image to 750px wide before saving...
View ArticleNested foreach issue
Hello,I am creating a jquery menu and I am having a problem displaying the correct data. It uses data from MySQL database. When I print the loops not nested the data prints out correctly. You'll see...
View ArticleCan't get this code to work!
So I have this code that checks if a user if banned on the website or not (Through a MySQL database) However, this code that DID IN FACT work, is not working anymore. Whenever I try to check if a...
View Articlenewbie here, need some help
hello guys, new to php trying to learn by watching some videos from youtube. I have learned how to insert and show the data from the database. But here is where I am having a bit problem. here is a...
View Articleparsing the PHP web reference site
hello everyone, this isn't really a coding question but couldn't find a forum for it. here is a webpage I would love to parse out and get only the relevant information out of it:...
View ArticleParse Error
Hi. I am relatively new to php and am trying to code a wordpress theme from scratch. In my header.php I am getting an error: Parse error: syntax error, unexpected ';' in...
View Article// turns link into comment
I'm pretty new to php, not so new to programming. My problem is really simple, and seems almost impossible to search for. When I reference an html link, the // renders everything after http: as a...
View Articleif statements
This is how I currently have it setup <?php if ($high1name == "open") { ?> <div class="module high open"> <img src="Icon_hi_slot.png" width="46" height="46"> </div>...
View ArticlePHP between Codes Not Work
<head> <?php include("conn/conn.php"); $set_query="SELECT * FROM settings "; $get_setting=mysql_query($set_query); while($set=mysql_fetch_array($get_setting)){ extract($set);...
View Articlephp/mysqli select strange high CPU usages
Hi php friends, I'll be very thankful to hear your opinion my php problem: I have a php website with mysql database with 1 table with about 20,000 rows. My code looks like this: $mysqli = new...
View Articlephp/MySQL insert for multiple records...
Fairly new to html, php etc. I can create rudimentary forms but now I'm trying to add multiple records at a time. How do I make the following a variable? I'd like to have this as my insert......
View Articleselecting rows with a certain age
Hi I have the following query; SELECT m.name,m.gender,m.dob, (SELECT FLOOR( DATEDIFF( 'date('Y-m-d')',m.dob ) / 365.25 )) AS age FROM members m which gets David Male 1990-08-17...
View ArticleXampp trouble working on localhost
Hi Guys - I'm in the midst of a guided tutorial with headfirstphp - i've finished the tutorial and uploaded it to my server and all works fine + as intended, however it doesn't work correctly on my...
View Articlephp problem with registration script
hi guys i have created my first login and registration page but it does not work correctly. After submitting registration deals, the details are accepted and the user gets taken to a page that just...
View ArticleForce download header not working
Hello freaks, Last week I asked for a way to download files without showing the paths and I was given this header("Content-Disposition: attachment; filename=\"{$fname}\""); header("Content-Type:...
View Article