Jessica
Staff Alumni-
Posts
8,968 -
Joined
-
Last visited
-
Days Won
41
Everything posted by Jessica
-
It worked fine for me, using Chrome.
-
I'm not your guy, pal.
-
See the link in my signature for the SQL error. There's a lot of other stuff wrong, which Dan mentioned. The loop (I assume) he's referring to is for($i=0;$i<$count;$i++){ because $count is a string.
-
Trouble Accessing Multidimensional Array Contained In $_Post
Jessica replied to nodirtyrockstar's topic in PHP Coding Help
You have to check if the $_POST array exists before trying to use it. Please fix your original post. -
It means your head is unbalanced, and you can usually fix it by doing a handstand, putting the computer on the floor upside down, and then very quickly drop your head onto the computer real hard.
-
Dynamically Combine Arrays With Array_Intersect()
Jessica replied to cyberRobot's topic in PHP Coding Help
So, write some logic that does that. count. -
Dynamically Combine Arrays With Array_Intersect()
Jessica replied to cyberRobot's topic in PHP Coding Help
Yes. That makes perfect sense. What is the problem? -
Maybe if you actually wanted answers, you should have provided the relevant information in your first post? Perhaps the size you've set it to isn't optimal for that font. Photoshop usually adds aliasing to the fonts, something I personally think makes them LESS attractive.
-
$query = mysql_query("SELECT * FROM members");//Queries the database $num = mysql_num_rows($query);//Collects the rows (if any) $row = mysql_fetch_assoc($query);//a variable to grab rows with //checks if there are any registered members if($num == 0){ $msg .= "There are no members in the database, register first."; }else{ Are you (a) actually suggesting querying for every column of every row of a table just to find out if any rows exist and ( b ) suggesting this is necessary to tell the end user whether or not ANY rows exist in the users table? Also, your code will only ever let the very first user login, and assumes passwords stored plain text. Please don't hand out code like this for newbies to use, this is just making things worse.
-
If the font is installed on your computer, the browser can use it. This is the reason you're supposed to use a list, IE: font-family: Georgia, Garamond, Times New Roman, serif; So the computer can use the most likely font. If your computer has Georgia, it's used. If not, it tries Garamond, then TNR, then just a generic serif. So if you're downloading wacky fonts online, and your visitors don't have them, you need to specify other similar fonts they are likely to have. There are lots of solutions out there for using specific fonts without images. I specifically see them in Wordpress sites a lot. TLDR: the problem is not the web browser, the problem is using fonts the visitors don't have.
-
Replace Characters Not Listed In A Whitelist Array
Jessica replied to matthewtbaker's topic in PHP Coding Help
I wasn't aware you could add to an array like that. (+=) That actually works? I've always used array_merge. Or is that new? $symbols = array(); //WHITELIST OF SYMBOLS $symbols += range('a', 'z'); // Lowercase A to Z $symbols += range('A', 'Z'); // Uppercase A to Z $symbols += range('0', '9'); // Numbers 0 to 9 $symbols[] = '>'; // Greater Than or Open Angle Bracket $symbols[] = '<'; // Less Than or Close Angle Bracket print_r($symbols); When I run that code, I get: Array ( [0] => a [1] => b [2] => c [3] => d [4] => e [5] => f [6] => g [7] => h [8] => i [9] => j [10] => k [11] => l [12] => m [13] => n [14] => o [15] => p [16] => q [17] => r [18] => s [19] => t [20] => u [21] => v [22] => w [23] => x [24] => y [25] => z [26] => > [27] => < )- 12 replies
-
- preg_replace
- str_replace
-
(and 2 more)
Tagged with:
-
Use code tags please. The code you have sends the user to a specific page based on their access level. What you'll want to do is (assuming this is a base/header type file) have a list of what pages are global OR a list of what are "special", then if on the "special" page (or not a global page), check if the user's access is one of the allowed types, and if not redirect them home.
-
Help Joining These Queries (A Cron Job That Is Destroying My Site)
Jessica replied to acidpunk's topic in PHP Coding Help
If you look at the manual you will see examples of looping through result sets. You would select all the data you need at once -
Help Joining These Queries (A Cron Job That Is Destroying My Site)
Jessica replied to acidpunk's topic in PHP Coding Help
Why would you select each slot separately? -
Help Joining These Queries (A Cron Job That Is Destroying My Site)
Jessica replied to acidpunk's topic in PHP Coding Help
Yes -
Help Joining These Queries (A Cron Job That Is Destroying My Site)
Jessica replied to acidpunk's topic in PHP Coding Help
WHY are you doing so many queries!!!?!?!? Also, use a SUM(). -
Just out of curiosity... Facebook.
Jessica replied to phpfreak's topic in PHPFreaks.com Website Feedback
And how many of them are from the new testament? -
Now you've got the damn comma back in there. It's like you just bang on the keyboard and hope it works, right? The words ARE IN ENGLISH. What does the word "type" mean? What does the word "casting" mean? Is google somehow broken on your computer? http://en.wikipedia.org/wiki/Type_conversion
-
No, it's not reading it from the database, it's getting the POSTed value. "country = '".$_POST['country']."'; WHERE id=$int"; 1. Why do you have a ; after the country? 2. What is $int? You need to read about type casting in PHP if you don't understand what that line of code does. And SQL injection/data santizing
-
echo $parsedarray['-state'];