-
Posts
9,409 -
Joined
-
Last visited
-
Days Won
1
Everything posted by MadTechie
-
$_SESSION[ic] is incorrect, yes it works but its wrong, unless ic is a constant, but as its not a constant php corrects it but will give a notice error (mild warning), use $_SESSION['ic'] instead (good habbit)
-
erm.. it should! try this regex (for multilines) $newData = preg_replace('%(.*)(?:http://intranet/portal)(.*)%sim', '$1http://iportal/home$2', $Data);
-
wasn't sure if ownerid was a reserved word the {} same the ".var." and the Serialnum is an int not a string so no quotes needed
-
do print_r($houserow); below the echo
-
Sighs mysql_query("UPDATE gamecard SET `Ownerid`= '{$_SESSION['ic']}' WHERE Serialnum =$cardID") or die(mysql_error());
-
Bad move.. the only thing i can think of is increased development time due to a learning curve!
-
$GetHouseInfo = mysql_query("SELECT * FROM houses WHERE UserID='{$_SESSION['Current_User']}'") or die(mysql_error());
-
erm ok <?php $image = "http://#############.net/../#######/CSS/logo.png"; echo "<img src='$image' />"; //displays list($width , $height) = getimagesize($image); //fails echo "w:$width, h:$height"; ?> EDIT: removing the "/.." fixed it as the path was invalid to PHP but corrected by the browser
-
What happens if the host restricts 50 and you try 51? if an error what error ? i just want to know as i havnt had this problem but if theirs no error then atleast i can be aware of it,
-
try this $image = "image.jpg"; if(file_exists($image)) { list($width , $height) = getimagesize($image); echo "w:$width, h:$height"; }else{ echo "file not found"; }
-
your "more familiar to use php than python".. why is that a problem?!!! ??? ??? EDIT: nevermind
-
option #2 (as a backup) $x = min($totalPages_Recordset1, $pageNum_Recordset1 + 1); echo "<a href=\"javascript:llamarasincrono('$currentPage?pageNum_Recordset1=$x$queryString_Recordset1', 'commentarios');\">Next</a>";
-
try this echo "<a href=\"javascript:llamarasincrono('".printf('%s?pageNum_Recordset1=%d%s', $currentPage, min($totalPages_Recordset1, $pageNum_Recordset1 + 1), $queryString_Recordset1)."', 'commentarios');."\">Next</a>";
-
you don't have OwnerID field your using IC mysql_query("UPDATE gamecard SET IC= '".$_SESSION['ic']."WHERE Serialnum ='$cardID'");
-
erm.. what are you asking ? why should you use PHP over Python ? look here Google is your friend
-
[SOLVED] Newbie needs help Im going crazy with this error code.
MadTechie replied to pnkgirl25's topic in PHP Coding Help
cool can you please click Topic Solved (bottom left) lucky i know Mac's -
Basic idea <?php //SQL stuf $SQL = "SELECT field FROM table WHERE field LIKE %http://site1/directory%;"; $updateSQL = ""; //loop each record while($row = mysql_query($SQL)) { $ID = $row['id']; $newData = preg_replace('%(.*)(?:http://site1/directory)(.*)%i', '$1http://site2/directory$2', $Data); $updateSQL .= "UPDATE table SET field = '$newData' WHERE ID = $ID;"; } mysql_query($updateSQL); ?>
-
[SOLVED] Newbie needs help Im going crazy with this error code.
MadTechie replied to pnkgirl25's topic in PHP Coding Help
Oh yeah if your using TextEditor 1. Select TextEdit from the menu and select Preferences. 2. Under New Document Attributes, select Plain text. 3. Under Saving, uncheck append ".txt" extension to plain text files. 4. Close the Preferences window. create a NEW file and copy the details from eailer post and save over the existing config.php -
[SOLVED] Newbie needs help Im going crazy with this error code.
MadTechie replied to pnkgirl25's topic in PHP Coding Help
Okay.. are you uploading via FTP ? (as that solves the CR problems) personally i would use BBedit on a Mac (or BBedit lite) -
[SOLVED] Newbie needs help Im going crazy with this error code.
MadTechie replied to pnkgirl25's topic in PHP Coding Help
"a text editor" doesn't tell me much.. Ms Word is a "text editor"/"word processor" but that can really mess things up.. does the editor have a name ? is it an online one ? does it have other "modes" -
nothing wrong with the script.. infact it looks like a mod of an force download old script i posted FTP in and check the file your attempting to download
-
[SOLVED] Newbie needs help Im going crazy with this error code.
MadTechie replied to pnkgirl25's topic in PHP Coding Help
more detail needed!! -
[SOLVED] Newbie needs help Im going crazy with this error code.
MadTechie replied to pnkgirl25's topic in PHP Coding Help
the reason i ask, is because the code is fine but the editor is probably messing it up.. can you edit in text only mode ( or source) -
[SOLVED] Newbie needs help Im going crazy with this error code.
MadTechie replied to pnkgirl25's topic in PHP Coding Help
using either itsmeArry or my code (as their the same) can you paste that into notepad and save it and upload it what editor are you currently using?