Forums Page 57
-
Insert to MySQL inside foreach
Hey. I am parsing some html, and putting inside an html db. I need to create a randomized integer to be a unique identifier, and i chose just to use…
-
True way to see if action was successful?
If this is a good way to see if action was successful to continue: Code: function changeGameState($GameId) { mysql_query("UPDATE challenges SET…
-
how to export excel file in same server
My first post - php newbie, so appreciate your support. I'm currently using headers to save web page as excel file. $filename="sms.xls"…
-
Help with ORDER BY
Hello. I would like to order by ascending States, then Cities, then Gyms in the following code, but I can't figure it out. If anyone could help, I…
-
Unique Visitor Tracking
Hello. Currently, I run a voting site where voters are tracked by their IP address and can only vote once every 12 hours. The system works well…
-
some query on multilingual website
Hi all, Which is the simplest and easiest method to make a website multilingual, is it putting files in different folder for different languages? or…
- Advertisement
-
PHP code needed to get/post form fields and request mysql query results.
I'm new to PHP I've created an html form to allow the user to request a basic telephone directory listing. They can select their 'listtype' by 'all'…
-
Add "width" check when upload
Hi! Can someone add a function that is checking if picture witdh is bigger then 800px whwn uploading, then echo "image oversized" to the code below?…
-
Not loading image
When this function gets loaded it doesn't load the image just trying to figure out why. Code: function…
-
fopen() security
As i understood the usage of fopen() for it to function correctly the Dir you write to has to be rw enabled for the php group, so that fopen() can…
-
switch form actions? not working
i want on submit to go to different pages according to the CatID Code: <?php $CatID=$_GET['CatID']; if (isset($CatID)) { } switch ($CatID) { case…
-
Gerenate tabel in Php
I whant to generate a tabel takeing data from database like this one so the results to be display on 2 columns <table width="50%" border="0"…
-
Undefined offset when using a flat file with pipe symbols
Hi, I've got a flat file/text file which I'm currently using as a member database for my site (not advisable I know.. but still learning here). In a…
-
Basic Forum Tutorial
Hi, I'm new to PHP. I want to build a basic forum for my site using PHP and MySQL. I've searched the 'net, but every tutorial I found the writer…
- Advertisement
-
Baffled by Undefined Index in Simple Array: Please Help!
Hello. I have a form which posts an array to this script. However, I can't seem to access the values in the array; I keep getting an undefined index…
-
PHP loop
Okay so I have several "articles" stored in a mysql database and am attempting to echo those onto a PHP page. so on index.php I have Code: <?php…
-
Syntax Help
I'm trying to make a form that edits a php file which contains config settings. I'm using strings that are defined by the user form inputs. This is…
-
user data not transferring to new page
I'm a PHP learner. After an index.php page, the user goes to a login.php page. Both pages seem to be working. After logging in with username…
-
PHP template help
Ok, I don't know if anyone can help me but I am using PHP templates to make a site. I am a newbie and so I am finding this quite difficult so I…
-
str_replace help
I am thinking str_replace is my only option to filter outputs from my database to convert them to safe url variables. I am working with a database…