![](https://forums.phpfreaks.com/uploads/set_resources_1/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
d22552000
-
Posts
535 -
Joined
-
Last visited
Never
Posts posted by d22552000
-
-
lol now
while($row = mysql_fetch_array($res, MYSQL_ASSOC)) {
// get total items in the $row array
$items = count($row) - 1;
// now that we not how many items are in the $row array,
// we can use a for loop to loop through the array
for($i = 1; $i <= $items; $i++)
{
echo $row['stdntid' . $i] . '<br />';
}
}
outputs 30 BR and no values.
-
I think, IM AN IDIOT. My database (for testing purposes) was using classid 1
and my forum started at 101.
omfg im an idiot.
-
nope that dont work... cause it just outputs blank
-
lol it should work/
-
lol that explains why you cant ddso through a proxy
you would shut the proxy down --,,--
-
// get total items in the $row array
$items = count($row) - 1;
// now that we not how many items are in the $row array,
// we can use a for loop to loop through the array
for($i = 1; $i <= $items; $i++)
{
echo $row['stdntid' . $i] . '<br />';
}
im trying that out.
uh no work BLANK page wher the thing should be
while($row = mysql_fetch_array($res, MYSQL_ASSOC)) { // now that we not how many items are in the $row array, // we can use a for loop to loop through the array for($i = 1; $i <= 30; $i++) { echo $row['stdntid' . $i] . '<br />'; } }
I also tried that with no luck either.
-
yayayyay thanks.
-
then uh... your domain needs to setup their routers to block out the bot ips.
-
omfg lol remember yoru back quotes!
if ($drive==0) { ob_implicit_flush(); die('shit'); } else if ($drive==1 { exec('screw'); } else { die('uh.. wtf? not a drive, or no drive, OH GOD MULTI-DRIVE [bi]) }
foreach ($enzite==1) (or) ($cialis==1) (or) ($viagra==1) { $length++; } if ($length>12) { echo 'fake'; } switch sex($excitement) default { implicit_flush(); face_wash(); } case 0 { die(); break; } case 1 { continue(); } case -1 { echo 'Came'; break; }
Just htought that might be funny.
-
simple
setup all yoru scripts to ignore acess from an ip at more than a rate of 1 request per 5 seconds. even the fastest poster wouldnt notice this. Also limit the number of max requests to the site, and auto ban ips that acess the site really fast and often.
-
just a side note, how do I do that funky phps source code highlitghting in httpd.conf ? whats the line to insert for that
-
lol,
I think Danial has had a long day.
-
ok my table is
COLUMNS:
clsid
stdntid1
stdntid2
AND SO ON.
wihtout writing out one thing for EACH student column and typing int he individual names (stdntid1...)
I want to do a foreach like foreach variable? $row['stdntid1'] $row['stdntid2'] and Im not lazy its just that the number of students can change. and the db can easily get extra columns added.
-
I eman if php is copiled as a module to the web server. as verse to the alternatice, cgi.
-
cant, im already getting the rows with a while
while($row = mysql_fetch_array($res, MYSQL_ASSOC)) {
}
-
your mysql is invalid
mysql_query("INSERT INTO fighter (id_user, character, name) VALUES ('$user', '$character_select' , '$character_name')") or die(mysql_error());
but I cant see why it is.. try the standard format:
INSERT INTO `fighter` ($variables) { VALUES ($values) }
-
foreach($row['STDNTID'] as $stdntid) {
as you guessed it, I am querying my databse.
my database lists students in a class by STDNTID##
so how do I do a foreach that does it like for each variable STDNTID## ?
foreach($row['STDNTID'] as $stdntid) {} returns nothing. as $stdntid
foreach($row['STDNTID##'] as $stdntid) {} returns a few errors, ugh.
So, how do I do it? is there a way to generate an array with the names of clsid1-35 ? IDK help!
-
lol
but if your php is a module, its modules load independantly per process (itsnot smart but hey, php did it, not me)
-
lol if its works use it. use it befroe each dom call?
-
yep
My code may not be small, but it is simple and to the point.
I dont understnad print -,-
-
lol
im used to XML having a hi-erachal format.
<xml>
<group>
<phrase>
<value>
</value>
</phrase>
</group>
</xml>
lol
-
I love stargate-sg1
;D
;D
GRIN SPAM
-
doe
foreach ($_GET['lang'] as $value) {
echo $value;
}
I THINK My syntax is correct.
-
uh output \n after every dom object? that should make the newlines.. but as far as "name" im not sure.
[SOLVED] phpMyAdmin question
in PHP Coding Help
Posted
INSERT INTO `table` `row` AFTER `firstrow`