Jessica
Staff Alumni-
Posts
8,968 -
Joined
-
Last visited
-
Days Won
41
Everything posted by Jessica
-
Passing Custom Field Into Wordpress Query_Posts Array?
Jessica replied to Novice@PHP's topic in Applications
Post what you tried. I don't know, I've never hired someone through it. You asked if there was somewhere you could pay for help. There is. -
Change <input name="comoditis" to <input name="comoditis[]". Change the value to 1, not a string. On your processing page, do a print_r($_POST); and you can see what's been posted. $_POST['comoditis'] will be an array of all the checked boxes.
-
If Column Contains Only Null Values Remove From Array.
Jessica replied to AnalyzeThis's topic in MySQL Help
Do an INNER join on materials. -
Send Email With $Email Variable Displayed
Jessica replied to aquatradehub's topic in PHP Coding Help
Click the lightswitch in the top left. Does that change it? Are you selecting the text and then clicking the icon? What browser are you using? etc. Also, you can just type [ code ] and [ /code] without the spaces. -
Send Email With $Email Variable Displayed
Jessica replied to aquatradehub's topic in PHP Coding Help
Use code tags next time. -
Send Email With $Email Variable Displayed
Jessica replied to aquatradehub's topic in PHP Coding Help
Oh my god. What is it with this today? I have never seen this so many times in one day. I know there's more than just these ones too. http://forums.phpfreaks.com/topic/269357-making-sure-usernames-are-not-duplicated/page__st__20#entry1384854 http://forums.phpfreaks.com/topic/269398-passing-custom-field-into-wordpress-query-posts-array/#entry1384849 http://forums.phpfreaks.com/topic/269391-adding-radio-buttons-to-a-mysql-database-list/#entry1384783 -
Passing Custom Field Into Wordpress Query_Posts Array?
Jessica replied to Novice@PHP's topic in Applications
We have a freelance forum. Why don't you try what I said though? -
Passing Custom Field Into Wordpress Query_Posts Array?
Jessica replied to Novice@PHP's topic in Applications
I'm moving this to third party apps. Did you write the get_posts function? I assume not, that sounds like a basic WP function. You probably just want to pass it the array, not a string of php code trying to echo an array. Which wouldn't even be valid PHP anyway. -
$to = '$_POST'; I feel like a broken record. Single Quoted Strings do not parse!!!
-
I don't think Lily was doing that, she just really did not know why you were doing it.
-
Passing Custom Field Into Wordpress Query_Posts Array?
Jessica replied to Novice@PHP's topic in Applications
You are literally telling it to use the string 'echo $listids;'. Single quoted strings do not parse. You shouldn't be storing PHP commands inside a string, anyway. Post the code for get_posts. -
I also never wear a helmet when I ride my bike. Someday if I get hit by a car, I'm going to wish I'd listened to my mom.
-
You should always follow a header('Location: ...') with a die() or exit().
-
You need to move ALL of your processing BEFORE any output.
-
Magic.
-
Even if every field is blank, if a form was submitted at all, $_POST will exist. It always contains the submit field at least, and the input fields will contain null/blank values.
-
Post the code you're having trouble with.
-
Insert Checkbox Values Into Table As Delimited String
Jessica replied to acidking's topic in PHP Coding Help
I wish I could like that 1000 times. -
Please use code tags. You already know how to access data in an array, you've done it before. $_POST is an array.
-
Yes. Errors. You need to put EVERYTHING you want to be printed to the screen AFTER any possibility of a header call.
-
Insert Checkbox Values Into Table As Delimited String
Jessica replied to acidking's topic in PHP Coding Help
NEEDS MORE RAGE. Seriously. Is there a site somewhere you can just read ragequits? I haven't seen a good one in a while. These last few are whineyquits. -
Php Loop In A Loop Optimization Help Request
Jessica replied to Failing_Solutions's topic in PHP Coding Help
The first thing you should do is run a case-insensitive find and replace and change all of your lable to label. /Get Data From SQL statement $query=mysql_query($sql) or die(mysql_error()); while($row=mysql_fetch_array($query)){ $record[]=$row['received_id']; $part_number[]=$row['part_number']; $location[]=$row['location']; $qty[]=$row['qty_requested']; } Rather than making all these arrays, just stick with a multi-dimensional assoc array, then do a foreach on it, not a for. -
*headdesk*. I did tell you why. Your query was never going to work. What is different about yours and mine? Did you read the link in my signature I directed you to?
-
//display success message echo "<center>You have successfully logged out!</center>"; //redirect them to the usersonline page header('Location: login.php'); What are you thinking will happen here? You cannot echo ANYTHING to the screen before using header(). You have printed a ton of stuff to the screen. It's not just whitespace, it's ANY text. Including <html> <head> <title>Login with Users Online Tutorial</title> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> And your echo.