Jessica
Staff Alumni-
Posts
8,968 -
Joined
-
Last visited
-
Days Won
41
Everything posted by Jessica
-
...
-
find the query_posts function.
-
The problem is....?
-
Set the body and html margin to 0 px in your CSS.
-
You either want to clear ALL entries in the table, or you want to clear SOME with a where clause. Which is it? DELETE does not allow column names or *. You delete the whole row. If you were checking for errors it would help.
-
Including the error you get might help. However you're missing the { } around your if else statements. if($s){ //code //code }else{ //code //code }
-
Empty object error unless MySQL connection is within function
Jessica replied to atticus's topic in PHP Coding Help
I suggest you read up on functions and scope. It has nothing to do with OOP, you're trying to use a variable within a function without passing it to the function. If you want to actually make it OOP, it would probably be better in the long run and help with your scope issue, but it's hard to grasp for newbies so you might choose to just stick with functions and procedural for now. *shrug* -
Mysql_Fetch_Array() Expects Parameter 1 To Be Resource
Jessica replied to Spanishearl's topic in PHP Coding Help
Your error is the mysql version. The post is about mysqli. The practice of checking for errors is exactly the same, except you use the mysql functions instead of the mysqli ones. -
Probably.
-
Mysql_Fetch_Array() Expects Parameter 1 To Be Resource
Jessica replied to Spanishearl's topic in PHP Coding Help
If you don't understand what $sql is supposed to hold, then you need to hire someone to fix the script for you, or learn PHP and MySQL. -
Did you look up array_slice? The error is very clear about what's wrong.
-
Mysql_Fetch_Array() Expects Parameter 1 To Be Resource
Jessica replied to Spanishearl's topic in PHP Coding Help
You're not checking for errors. Read the link about debugging SQL, it shows you how to check for SQL errors. -
This forum is where you try stuff, and we help you fix bugs. You have to try it on your own. You've been given a direction.
-
What is the problem you got?
-
Mysql_Fetch_Array() Expects Parameter 1 To Be Resource
Jessica replied to Spanishearl's topic in PHP Coding Help
See the link in my signature. -
I think we have a winner already for most vague question in 2013.
-
Well you can start and ask for help when you get stuck, or you can post in the freelance section. Try google. It's cool.
-
Yep, I stand corrected, when using the slashes only it works. Sorry about that. I do think it'd be better to fix the JS to use a YYYY-MM-DD format but Op should be able to get it working with strtotime now.
-
Which part, the programming or the posting in the freelance board?
-
Your code basically does this: call f(0); echo before: 0 call f(1); echo before: 1; call f(2); exit f(2) echo after: 1; exit f(1); echo after: 0;
-
How To Create A Php Template For Every Page
Jessica replied to devilsvein's topic in PHP Coding Help
Either use a template engine like Smarty or just use includes. -
Google "normalization".